diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index d9d004a9cf..53b399070f 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +import * as Bull from 'bullmq'; import { forwardRef, Inject, Injectable } from '@nestjs/common'; import { In } from 'typeorm'; import { DI } from '@/di-symbols.js'; @@ -164,7 +165,7 @@ export class ApNoteService { const noteUrl = yumeAssertAcceptableURL(note.id); if (noteUrl.host !== actUrl.host) { - throw new Error(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`); + throw new Bull.UnrecoverableError(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`); } }