X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fblocklist.ts;h=009e229cedd4c293942b5d7c312736f73094b46c;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=a11b717b548414daa8478fcd3ed6d73b5a4b2176;hpb=3f0ceab06e5320f62f593c49daa30d963dbc36f9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/blocklist.ts b/server/lib/blocklist.ts index a11b717b5..009e229ce 100644 --- a/server/lib/blocklist.ts +++ b/server/lib/blocklist.ts @@ -1,6 +1,6 @@ import { sequelizeTypescript } from '@server/initializers/database' import { getServerActor } from '@server/models/application/application' -import { MAccountBlocklist, MAccountId, MAccountServer, MServerBlocklist } from '@server/types/models' +import { MAccountBlocklist, MAccountId, MAccountHost, MServerBlocklist } from '@server/types/models' import { AccountBlocklistModel } from '../models/account/account-blocklist' import { ServerBlocklistModel } from '../models/server/server-blocklist' @@ -34,7 +34,7 @@ function removeServerFromBlocklist (serverBlock: MServerBlocklist) { }) } -async function isBlockedByServerOrAccount (targetAccount: MAccountServer, userAccount?: MAccountId) { +async function isBlockedByServerOrAccount (targetAccount: MAccountHost, userAccount?: MAccountId) { const serverAccountId = (await getServerActor()).Account.id const sourceAccounts = [ serverAccountId ]