From be295b19a627ddb57fed2b0c249e74c9b01ff1ca Mon Sep 17 00:00:00 2001 From: fly_mc Date: Mon, 18 Nov 2024 02:36:56 +0800 Subject: [PATCH] try: fix: return null instead of throw error when recursively fetching note --- packages/backend/src/core/activitypub/models/ApNoteService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index e29eca5d7..daf3db07c 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -235,7 +235,7 @@ export class ApNoteService { }) .catch(async err => { this.logger.warn(`Error in inReplyTo ${note.inReplyTo} - ${err.statusCode ?? err}`); - throw err; + return null; }) : null;