mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Don't notify on muted instance
This commit is contained in:
parent
96f6278f3e
commit
dddc8b1fe0
4 changed files with 262 additions and 19 deletions
|
@ -75,11 +75,6 @@ export class AccountBlocklistModel extends Model<AccountBlocklistModel> {
|
|||
})
|
||||
BlockedAccount: AccountModel
|
||||
|
||||
static isAccountMutedBy (accountId: number, targetAccountId: number) {
|
||||
return AccountBlocklistModel.isAccountMutedByMulti([ accountId ], targetAccountId)
|
||||
.then(result => result[accountId])
|
||||
}
|
||||
|
||||
static isAccountMutedByMulti (accountIds: number[], targetAccountId: number) {
|
||||
const query = {
|
||||
attributes: [ 'accountId', 'id' ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue