Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function isUserRelated(note, ids) {
|
||||
if (ids.has(note.userId)) return true; // note author is muted
|
||||
if (note.mentions?.some((user)=>ids.has(user))) return true; // any of mentioned users are muted
|
||||
if (note.reply && isUserRelated(note.reply, ids)) return true; // also check reply target
|
||||
if (note.renote && isUserRelated(note.renote, ids)) return true; // also check renote target
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user