import { getAbsoluteAPIUrl } from '@app/helpers'
-import { Account, Actor } from '@app/shared/shared-main'
-import { Account as AccountInterface, VideoComment as VideoCommentServerModel, VideoCommentAdmin as VideoCommentAdminServerModel } from '@shared/models'
+import { Actor, Video } from '@app/shared/shared-main'
+import {
+ Account as AccountInterface,
+ VideoComment as VideoCommentServerModel,
+ VideoCommentAdmin as VideoCommentAdminServerModel
+} from '@shared/models'
export class VideoComment implements VideoCommentServerModel {
id: number
id: hash.video.id,
uuid: hash.video.uuid,
name: hash.video.name,
- localUrl: '/videos/watch/' + hash.video.uuid
+ localUrl: Video.buildWatchUrl(hash.video)
}
this.localUrl = this.video.localUrl + ';threadId=' + this.threadId