mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-16 13:15:30 +02:00
Merge branch 'develop' into multiple-reactions
This commit is contained in:
@@ -203,7 +203,9 @@ export class ApRequestService {
|
||||
});
|
||||
|
||||
//#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 ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html' && _followAlternate === true) {
|
||||
const html = await res.text();
|
||||
const window = new Window();
|
||||
const document = window.document;
|
||||
|
||||
Reference in New Issue
Block a user