refactor: Rename function

This commit is contained in:
syuilo 2020-07-28 09:36:43 +09:00
parent 0efa969a15
commit a8adc46f3b
9 changed files with 17 additions and 17 deletions

View file

@ -1,15 +0,0 @@
export default function(note: any, mutedUserIds: string[]): boolean {
if (mutedUserIds.includes(note.userId)) {
return true;
}
if (note.reply != null && mutedUserIds.includes(note.reply.userId)) {
return true;
}
if (note.renote != null && mutedUserIds.includes(note.renote.userId)) {
return true;
}
return false;
}