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
if (this.account) {
this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host)
- this.account.localUrl = '/accounts/' + this.by
+ this.account.localUrl = '/a/' + this.by
}
}
}