X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Factors%2Ffollow.model.ts;h=244d6d97ea1183443696a3fa0b71afeb87ea1d48;hb=7c3b866881be02e752f3e0c21c64a32a0e4464bb;hp=cdc3da5602ffc81eeee963ab03aa6ccf0c971e03;hpb=50d6de9c286abcb34ff4234d56d9cbb803db7665;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/actors/follow.model.ts b/shared/models/actors/follow.model.ts index cdc3da560..244d6d97e 100644 --- a/shared/models/actors/follow.model.ts +++ b/shared/models/actors/follow.model.ts @@ -1,11 +1,12 @@ -import { Account } from './account.model' +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: Account - following: Account + follower: Actor & { hostRedundancyAllowed: boolean } + following: Actor & { hostRedundancyAllowed: boolean } + score: number state: FollowState createdAt: Date updatedAt: Date