From 7c89929e1229f93a7c18dcd667777f10ed82c2df Mon Sep 17 00:00:00 2001 From: tai-cha Date: Sat, 17 Aug 2024 19:30:06 +0900 Subject: [PATCH] code style --- packages/backend/src/core/activitypub/ApRequestService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/core/activitypub/ApRequestService.ts b/packages/backend/src/core/activitypub/ApRequestService.ts index 212f505ce82f..eb9059ba0911 100644 --- a/packages/backend/src/core/activitypub/ApRequestService.ts +++ b/packages/backend/src/core/activitypub/ApRequestService.ts @@ -204,6 +204,7 @@ export class ApRequestService { //#region リクエスト先がhtmlかつactivity+jsonへのalternate linkタグがあるとき const contentType = res.headers.get('content-type'); + if (contentType?.split(';')[0]?.trimEnd()?.toLowerCase() === 'text/html' && _followAlternate === true) { const html = await res.text(); const window = new Window();