diff options
Diffstat (limited to 'packages/models/src/actors/follow.model.ts')
-rw-r--r-- | packages/models/src/actors/follow.model.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/models/src/actors/follow.model.ts b/packages/models/src/actors/follow.model.ts new file mode 100644 index 000000000..7f3f52ac5 --- /dev/null +++ b/packages/models/src/actors/follow.model.ts | |||
@@ -0,0 +1,13 @@ | |||
1 | import { Actor } from './actor.model.js' | ||
2 | |||
3 | export type FollowState = 'pending' | 'accepted' | 'rejected' | ||
4 | |||
5 | export interface ActorFollow { | ||
6 | id: number | ||
7 | follower: Actor & { hostRedundancyAllowed: boolean } | ||
8 | following: Actor & { hostRedundancyAllowed: boolean } | ||
9 | score: number | ||
10 | state: FollowState | ||
11 | createdAt: Date | ||
12 | updatedAt: Date | ||
13 | } | ||