diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-19 10:35:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-19 11:34:00 +0100 |
commit | dddc8b1fe0c875f41c88f395b0d55cfea69add2c (patch) | |
tree | 06b84dc99f78d8422fc8eeda8a3372291660aed0 /server/models/account | |
parent | 96f6278f3e5b35d6e812176c799088f88729a0b0 (diff) | |
download | PeerTube-dddc8b1fe0c875f41c88f395b0d55cfea69add2c.tar.gz PeerTube-dddc8b1fe0c875f41c88f395b0d55cfea69add2c.tar.zst PeerTube-dddc8b1fe0c875f41c88f395b0d55cfea69add2c.zip |
Don't notify on muted instance
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account-blocklist.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/models/account/account-blocklist.ts b/server/models/account/account-blocklist.ts index 8bcaca828..6ebe32556 100644 --- a/server/models/account/account-blocklist.ts +++ b/server/models/account/account-blocklist.ts | |||
@@ -75,11 +75,6 @@ export class AccountBlocklistModel extends Model<AccountBlocklistModel> { | |||
75 | }) | 75 | }) |
76 | BlockedAccount: AccountModel | 76 | BlockedAccount: AccountModel |
77 | 77 | ||
78 | static isAccountMutedBy (accountId: number, targetAccountId: number) { | ||
79 | return AccountBlocklistModel.isAccountMutedByMulti([ accountId ], targetAccountId) | ||
80 | .then(result => result[accountId]) | ||
81 | } | ||
82 | |||
83 | static isAccountMutedByMulti (accountIds: number[], targetAccountId: number) { | 78 | static isAccountMutedByMulti (accountIds: number[], targetAccountId: number) { |
84 | const query = { | 79 | const query = { |
85 | attributes: [ 'accountId', 'id' ], | 80 | attributes: [ 'accountId', 'id' ], |