diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-20 11:19:23 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 7e9334c34db23e5ad1e118151b24c720dd985984 (patch) | |
tree | 154f5d1db44ff652b793d8e0b7dc1b00a3ddaec1 /shared/models/accounts/follow.model.ts | |
parent | 892211e8493b1f992fce7616cb1e48b7ff87a1dc (diff) | |
download | PeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.tar.gz PeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.tar.zst PeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.zip |
Add ability to unfollow a server
Diffstat (limited to 'shared/models/accounts/follow.model.ts')
-rw-r--r-- | shared/models/accounts/follow.model.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/shared/models/accounts/follow.model.ts b/shared/models/accounts/follow.model.ts index 8094634c1..cdc3da560 100644 --- a/shared/models/accounts/follow.model.ts +++ b/shared/models/accounts/follow.model.ts | |||
@@ -1,8 +1,12 @@ | |||
1 | import { Account } from './account.model' | ||
2 | |||
1 | export type FollowState = 'pending' | 'accepted' | 3 | export type FollowState = 'pending' | 'accepted' |
2 | 4 | ||
3 | export interface AccountFollow { | 5 | export interface AccountFollow { |
4 | id: number | 6 | id: number |
5 | name: string | 7 | follower: Account |
6 | score?: number // Used for followers | 8 | following: Account |
7 | host: string | 9 | state: FollowState |
10 | createdAt: Date | ||
11 | updatedAt: Date | ||
8 | } | 12 | } |