fix(backend): mention was not considered for mute
This commit is contained in:
parent
b95a0457a9
commit
959aba6b13
|
@ -8,6 +8,10 @@ export function isUserRelated(note: any, userIds: Set<string>, ignoreAuthor = fa
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (note.mentions != null && note.mentions.filter(userId => userId !== note.userId && userIds.has(userId)).length > 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (note.reply != null && note.reply.userId !== note.userId && userIds.has(note.reply.userId)) {
|
if (note.reply != null && note.reply.userId !== note.userId && userIds.has(note.reply.userId)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue