diff options
Diffstat (limited to 'client/src/app/shared/shared-video-comment/video-comment.model.ts')
-rw-r--r-- | client/src/app/shared/shared-video-comment/video-comment.model.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.model.ts b/client/src/app/shared/shared-video-comment/video-comment.model.ts index 1589091e5..eeee397af 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.model.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.model.ts | |||
@@ -59,12 +59,14 @@ export class VideoCommentAdmin implements VideoCommentAdminServerModel { | |||
59 | createdAt: Date | string | 59 | createdAt: Date | string |
60 | updatedAt: Date | string | 60 | updatedAt: Date | string |
61 | 61 | ||
62 | account: AccountInterface | 62 | account: AccountInterface & { localUrl?: string } |
63 | localUrl: string | ||
63 | 64 | ||
64 | video: { | 65 | video: { |
65 | id: number | 66 | id: number |
66 | uuid: string | 67 | uuid: string |
67 | name: string | 68 | name: string |
69 | localUrl: string | ||
68 | } | 70 | } |
69 | 71 | ||
70 | by: string | 72 | by: string |
@@ -85,14 +87,19 @@ export class VideoCommentAdmin implements VideoCommentAdminServerModel { | |||
85 | this.video = { | 87 | this.video = { |
86 | id: hash.video.id, | 88 | id: hash.video.id, |
87 | uuid: hash.video.uuid, | 89 | uuid: hash.video.uuid, |
88 | name: hash.video.name | 90 | name: hash.video.name, |
91 | localUrl: '/videos/watch/' + hash.video.uuid | ||
89 | } | 92 | } |
90 | 93 | ||
94 | this.localUrl = this.video.localUrl + ';threadId=' + this.threadId | ||
95 | |||
91 | this.account = hash.account | 96 | this.account = hash.account |
92 | 97 | ||
93 | if (this.account) { | 98 | if (this.account) { |
94 | this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host) | 99 | this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host) |
95 | this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) | 100 | this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) |
101 | |||
102 | this.account.localUrl = '/accounts/' + this.by | ||
96 | } | 103 | } |
97 | } | 104 | } |
98 | } | 105 | } |