diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-25 15:43:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-25 15:43:19 +0200 |
commit | d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c (patch) | |
tree | 3c2406346c7774587ba4e095ab595e5953e25c61 /client/src/app/shared/video | |
parent | 03e12d7c4954e1071fdeb7ef362ea5c3965d4075 (diff) | |
download | PeerTube-d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c.tar.gz PeerTube-d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c.tar.zst PeerTube-d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c.zip |
Add video channel account list
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video.model.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index 2e85f40ef..f56eecaeb 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts | |||
@@ -1,13 +1,14 @@ | |||
1 | import { Account } from '@app/shared/account/account.model' | ||
2 | import { User } from '../' | 1 | import { User } from '../' |
3 | import { Video as VideoServerModel, VideoPrivacy } from '../../../../../shared' | 2 | import { Video as VideoServerModel, VideoPrivacy } from '../../../../../shared' |
4 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | 3 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' |
5 | import { VideoConstant } from '../../../../../shared/models/videos/video.model' | 4 | import { VideoConstant } from '../../../../../shared/models/videos/video.model' |
6 | import { getAbsoluteAPIUrl } from '../misc/utils' | 5 | import { getAbsoluteAPIUrl } from '../misc/utils' |
7 | import { ServerConfig } from '../../../../../shared/models' | 6 | import { ServerConfig } from '../../../../../shared/models' |
7 | import { Actor } from '@app/shared/actor/actor.model' | ||
8 | 8 | ||
9 | export class Video implements VideoServerModel { | 9 | export class Video implements VideoServerModel { |
10 | by: string | 10 | by: string |
11 | accountAvatarUrl: string | ||
11 | createdAt: Date | 12 | createdAt: Date |
12 | updatedAt: Date | 13 | updatedAt: Date |
13 | publishedAt: Date | 14 | publishedAt: Date |
@@ -85,7 +86,8 @@ export class Video implements VideoServerModel { | |||
85 | this.nsfw = hash.nsfw | 86 | this.nsfw = hash.nsfw |
86 | this.account = hash.account | 87 | this.account = hash.account |
87 | 88 | ||
88 | this.by = Account.CREATE_BY_STRING(hash.account.name, hash.account.host) | 89 | this.by = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host) |
90 | this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) | ||
89 | } | 91 | } |
90 | 92 | ||
91 | isVideoNSFWForUser (user: User, serverConfig: ServerConfig) { | 93 | isVideoNSFWForUser (user: User, serverConfig: ServerConfig) { |