+ private async isBlockedByServerOrAccount (user: MUserAccount, targetAccount: MAccountDefault) {
+ const serverAccountId = (await getServerActor()).Account.id
+ const sourceAccounts = [ serverAccountId, user.Account.id ]
+
+ const accountMutedHash = await AccountBlocklistModel.isAccountMutedByMulti(sourceAccounts, targetAccount.id)
+ if (accountMutedHash[serverAccountId] || accountMutedHash[user.Account.id]) return true
+
+ const instanceMutedHash = await ServerBlocklistModel.isServerMutedByMulti(sourceAccounts, targetAccount.Actor.serverId)
+ if (instanceMutedHash[serverAccountId] || instanceMutedHash[user.Account.id]) return true
+
+ return false
+ }
+