1
0
Fork 0
peertube/shared/models/actors/follow.model.ts
Chocobozzz 927fa4b11f
Add rejected state to follows
Prevent reprocessing already rejected follows
2022-07-27 13:52:13 +02:00

13 lines
332 B
TypeScript

import { Actor } from './actor.model'
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
}