Skip to content

Commit

Permalink
fix by review
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha committed Aug 17, 2024
1 parent 7c89929 commit f94e3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/activitypub/ApRequestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,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) {
if ((contentType ?? '').split(';')[0].trimEnd().toLowerCase() === 'text/html' && _followAlternate === true) {
const html = await res.text();
const window = new Window();
const document = window.document;
Expand Down

0 comments on commit f94e3d9

Please sign in to comment.