aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-20 11:19:23 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit7e9334c34db23e5ad1e118151b24c720dd985984 (patch)
tree154f5d1db44ff652b793d8e0b7dc1b00a3ddaec1 /shared
parent892211e8493b1f992fce7616cb1e48b7ff87a1dc (diff)
downloadPeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.tar.gz
PeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.tar.zst
PeerTube-7e9334c34db23e5ad1e118151b24c720dd985984.zip
Add ability to unfollow a server
Diffstat (limited to 'shared')
-rw-r--r--shared/models/accounts/follow.model.ts10
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 @@
1import { Account } from './account.model'
2
1export type FollowState = 'pending' | 'accepted' 3export type FollowState = 'pending' | 'accepted'
2 4
3export interface AccountFollow { 5export 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}