PeerTube/shared/models/actors/follow.model.ts

14 lines
332 B
TypeScript
Raw Normal View History

import { Actor } from './actor.model'
2017-11-20 04:19:23 -06:00
export type FollowState = 'pending' | 'accepted' | 'rejected'
2017-11-15 04:00:25 -06:00
2018-09-11 09:27:07 -05:00
export interface ActorFollow {
2017-11-15 04:00:25 -06:00
id: number
2018-09-11 09:27:07 -05:00
follower: Actor & { hostRedundancyAllowed: boolean }
following: Actor & { hostRedundancyAllowed: boolean }
score: number
2017-11-20 04:19:23 -06:00
state: FollowState
createdAt: Date
updatedAt: Date
2017-11-15 04:00:25 -06:00
}