Chocobozzz/PeerTube

View on GitHub
packages/models/src/actors/follow.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Actor } from './actor.model.js'

export type FollowState = 'pending' | 'accepted' | 'rejected'

export interface ActorFollow {
  id: number
  follower: Actor & { hostRedundancyAllowed: boolean }
  following: Actor & { hostRedundancyAllowed: boolean }
  score: number
  state: FollowState
  createdAt: Date
  updatedAt: Date
}