]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/actors/follow.model.ts
Add rejected state to follows
[github/Chocobozzz/PeerTube.git] / shared / models / actors / follow.model.ts
index 70562bfc7d3278ae9e06f88e245f23bae27afd64..244d6d97ea1183443696a3fa0b71afeb87ea1d48 100644 (file)
@@ -1,11 +1,11 @@
 import { Actor } from './actor.model'
 
-export type FollowState = 'pending' | 'accepted'
+export type FollowState = 'pending' | 'accepted' | 'rejected'
 
-export interface AccountFollow {
+export interface ActorFollow {
   id: number
-  follower: Actor
-  following: Actor
+  follower: Actor & { hostRedundancyAllowed: boolean }
+  following: Actor & { hostRedundancyAllowed: boolean }
   score: number
   state: FollowState
   createdAt: Date