Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

615 B
Raw Blame
import { AccountBlock as AccountBlockServer } from '@peertube/peertube-models'
import { Account } from '../shared-main/account/account.model'

export class AccountBlock implements AccountBlockServer {
  byAccount: Account
  blockedAccount: Account
  createdAt: Date | string

  blocklistSubscription?: {
    id: number
    name: string
    url: string
  }

  constructor (block: AccountBlockServer) {
    this.byAccount = new Account(block.byAccount)
    this.blockedAccount = new Account(block.blockedAccount)
    this.createdAt = block.createdAt
    this.blocklistSubscription = block.blocklistSubscription
  }
}