feat(federation): 特定の連合サーバーのメディアを全てセンシティブとして設定が効かない問題を修正 (MisskeyIO#342)

This commit is contained in:
まっちゃとーにゅ 2024-01-08 10:08:52 +09:00 committed by GitHub
parent 39af07d6fc
commit 9c8651ffa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ export class ApNoteService {
const apHashtags = extractApHashtags(note.tag); const apHashtags = extractApHashtags(note.tag);
const meta = await this.metaService.fetch(); const meta = await this.metaService.fetch();
const isSensitiveMediaHost = this.utilityService.isSensitiveMediaHost(meta.blockedHosts, this.utilityService.extractDbHost(note.id ?? entryUri)); const isSensitiveMediaHost = this.utilityService.isSensitiveMediaHost(meta.sensitiveMediaHosts, this.utilityService.extractDbHost(note.id ?? entryUri));
// 添付ファイル // 添付ファイル
// TODO: attachmentは必ずしもImageではない // TODO: attachmentは必ずしもImageではない