diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-21 16:18:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (patch) | |
tree | 93c53e0619f966bd9ff1bb698c411277a9447a41 /client/src/app/shared/video/video.model.ts | |
parent | 99492dbc0d87ef54d0dab7d8d44f8d0de5722bdd (diff) | |
download | PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.gz PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.zst PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.zip |
Add local user subscriptions
Diffstat (limited to 'client/src/app/shared/video/video.model.ts')
-rw-r--r-- | client/src/app/shared/video/video.model.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index df8253301..d80c10459 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts | |||
@@ -8,9 +8,12 @@ import { Actor } from '@app/shared/actor/actor.model' | |||
8 | import { VideoScheduleUpdate } from '../../../../../shared/models/videos/video-schedule-update.model' | 8 | import { VideoScheduleUpdate } from '../../../../../shared/models/videos/video-schedule-update.model' |
9 | 9 | ||
10 | export class Video implements VideoServerModel { | 10 | export class Video implements VideoServerModel { |
11 | by: string | 11 | byVideoChannel: string |
12 | byAccount: string | ||
13 | |||
12 | accountAvatarUrl: string | 14 | accountAvatarUrl: string |
13 | videoChannelAvatarUrl: string | 15 | videoChannelAvatarUrl: string |
16 | |||
14 | createdAt: Date | 17 | createdAt: Date |
15 | updatedAt: Date | 18 | updatedAt: Date |
16 | publishedAt: Date | 19 | publishedAt: Date |
@@ -110,7 +113,8 @@ export class Video implements VideoServerModel { | |||
110 | this.account = hash.account | 113 | this.account = hash.account |
111 | this.channel = hash.channel | 114 | this.channel = hash.channel |
112 | 115 | ||
113 | this.by = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host) | 116 | this.byAccount = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host) |
117 | this.byVideoChannel = Actor.CREATE_BY_STRING(hash.channel.name, hash.channel.host) | ||
114 | this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) | 118 | this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) |
115 | this.videoChannelAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.channel) | 119 | this.videoChannelAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.channel) |
116 | 120 | ||