masterブランチをmaster_securityとマージ (#9260)

* Fix: forkbomb 2

* 12.119.2

Co-authored-by: mei23 <m@m544.net>
This commit is contained in:
rinsuki
2022-12-04 05:34:51 +09:00
committed by GitHub
parent fccd9c32e8
commit fcabc99303
5 changed files with 9 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
throw new Error('actor has been suspended');
}
const noteAudience = await parseAudience(actor, note.to, note.cc);
const noteAudience = await parseAudience(actor, note.to, note.cc, resolver);
let visibility = noteAudience.visibility;
const visibleUsers = noteAudience.visibleUsers;
@@ -111,7 +111,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
let isTalk = note._misskey_talk && visibility === 'specified';
const apMentions = await extractApMentions(note.tag);
const apMentions = await extractApMentions(note.tag, resolver);
const apHashtags = await extractApHashtags(note.tag);
// 添付ファイル