We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3bc849 commit eec2f21Copy full SHA for eec2f21
packages/backend/src/core/activitypub/ApRequestService.ts
@@ -204,8 +204,8 @@ export class ApRequestService {
204
205
//#region リクエスト先がhtmlかつactivity+jsonへのalternate linkタグがあるとき
206
const contentType = res.headers.get('content-type');
207
-
208
- if ((contentType === 'text/html' || contentType?.startsWith('text/html;')) && _followAlternate === true) {
+
+ if ((contentType ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html' && _followAlternate === true) {
209
const html = await res.text();
210
const window = new Window();
211
const document = window.document;
0 commit comments