})
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' ],
where: {
accountId: {
- [Op.in]: accountIds // FIXME: sequelize ANY seems broken
+ [Op.in]: accountIds
},
targetAccountId
},