diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-28 09:36:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-28 09:36:43 +0900 |
| commit | a8adc46f3ba42e86c64a64f2633f5796aeca01f4 (patch) | |
| tree | e774dd66366702a9f7adb2d688283523a0556c99 /src/misc/should-mute-this-note.ts | |
| parent | chore: Remove debug code (diff) | |
| download | misskey-a8adc46f3ba42e86c64a64f2633f5796aeca01f4.tar.gz misskey-a8adc46f3ba42e86c64a64f2633f5796aeca01f4.tar.bz2 misskey-a8adc46f3ba42e86c64a64f2633f5796aeca01f4.zip | |
refactor: Rename function
Diffstat (limited to 'src/misc/should-mute-this-note.ts')
| -rw-r--r-- | src/misc/should-mute-this-note.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/misc/should-mute-this-note.ts b/src/misc/should-mute-this-note.ts deleted file mode 100644 index 8f606a2943..0000000000 --- a/src/misc/should-mute-this-note.ts +++ /dev/null @@ -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; -} |