mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
Update packages/backend/src/core/activitypub/ApRequestService.ts
This commit is contained in:
parent
83c04c55ad
commit
129af06198
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ export class ApRequestService {
|
||||||
});
|
});
|
||||||
|
|
||||||
//#region リクエスト先がhtmlかつactivity+jsonへのalternate linkタグがあるとき
|
//#region リクエスト先がhtmlかつactivity+jsonへのalternate linkタグがあるとき
|
||||||
if (res.headers.get('Content-type')?.startsWith('text/html;') && _followAlternate === true) {
|
const contentType = res.headers.get('content-type');
|
||||||
|
|
||||||
|
if ((contentType === 'text/html' || contentType?.startsWith('text/html;')) && _followAlternate === true) {
|
||||||
const html = await res.text();
|
const html = await res.text();
|
||||||
const window = new Window();
|
const window = new Window();
|
||||||
const document = window.document;
|
const document = window.document;
|
||||||
|
|
Loading…
Reference in a new issue