summaryrefslogtreecommitdiff
path: root/src/misc/should-mute-this-note.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-28 09:36:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-28 09:36:43 +0900
commita8adc46f3ba42e86c64a64f2633f5796aeca01f4 (patch)
treee774dd66366702a9f7adb2d688283523a0556c99 /src/misc/should-mute-this-note.ts
parentchore: Remove debug code (diff)
downloadmisskey-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.ts15
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;
-}