diff options
author | Chocobozzz <me@florianbigard.com> | 2019-09-04 14:30:34 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-09-04 16:24:58 +0200 |
commit | e1b49ee534108ba8ac98dcb209d2efcbf1ecd678 (patch) | |
tree | 85dd88966e105df5e06140b4aaca39c58c3f32d9 /client/src/app/shared/users/user-notification.model.ts | |
parent | 10a105f0c8620b2742eb357b69dd516a9ddf5798 (diff) | |
download | PeerTube-e1b49ee534108ba8ac98dcb209d2efcbf1ecd678.tar.gz PeerTube-e1b49ee534108ba8ac98dcb209d2efcbf1ecd678.tar.zst PeerTube-e1b49ee534108ba8ac98dcb209d2efcbf1ecd678.zip |
Implement auto follow in client
Diffstat (limited to 'client/src/app/shared/users/user-notification.model.ts')
-rw-r--r-- | client/src/app/shared/users/user-notification.model.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user-notification.model.ts b/client/src/app/shared/users/user-notification.model.ts index 37fa29ee8..b4ac075c5 100644 --- a/client/src/app/shared/users/user-notification.model.ts +++ b/client/src/app/shared/users/user-notification.model.ts | |||
@@ -42,9 +42,10 @@ export class UserNotification implements UserNotificationServer { | |||
42 | state: FollowState | 42 | state: FollowState |
43 | follower: ActorInfo & { avatarUrl?: string } | 43 | follower: ActorInfo & { avatarUrl?: string } |
44 | following: { | 44 | following: { |
45 | type: 'account' | 'channel' | 45 | type: 'account' | 'channel' | 'instance' |
46 | name: string | 46 | name: string |
47 | displayName: string | 47 | displayName: string |
48 | host: string | ||
48 | } | 49 | } |
49 | } | 50 | } |
50 | 51 | ||
@@ -146,6 +147,10 @@ export class UserNotification implements UserNotificationServer { | |||
146 | case UserNotificationType.NEW_INSTANCE_FOLLOWER: | 147 | case UserNotificationType.NEW_INSTANCE_FOLLOWER: |
147 | this.instanceFollowUrl = '/admin/follows/followers-list' | 148 | this.instanceFollowUrl = '/admin/follows/followers-list' |
148 | break | 149 | break |
150 | |||
151 | case UserNotificationType.AUTO_INSTANCE_FOLLOWING: | ||
152 | this.instanceFollowUrl = '/admin/follows/following-list' | ||
153 | break | ||
149 | } | 154 | } |
150 | } catch (err) { | 155 | } catch (err) { |
151 | this.type = null | 156 | this.type = null |