X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment.model.ts;h=171fc4acccc3ba65e2dd6293225a829b9d17f90b;hb=be27ef3b4682c5639039474c39ee0d234d16f482;hp=719d1f04e1cf6aefc0c36d2397a258f267c3237a;hpb=69222afac8f8c41d90295b33f0695bbff352851e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-watch/comment/video-comment.model.ts b/client/src/app/videos/+video-watch/comment/video-comment.model.ts index 719d1f04e..171fc4acc 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.model.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.model.ts @@ -1,5 +1,5 @@ import { Account as AccountInterface } from '../../../../../../shared/models/actors' -import { VideoComment as VideoCommentServerModel } from '../../../../../../shared/models/videos/video-comment.model' +import { VideoComment as VideoCommentServerModel, VideoCommentCreate } from '../../../../../../shared/models/videos/video-comment.model' import { Actor } from '@app/shared/actor/actor.model' import { getAbsoluteAPIUrl } from '@app/shared/misc/utils' @@ -15,6 +15,7 @@ export class VideoComment implements VideoCommentServerModel { deletedAt: Date | string isDeleted: boolean account: AccountInterface + totalRepliesFromVideoAuthor: number totalReplies: number by: string accountAvatarUrl: string @@ -33,6 +34,7 @@ export class VideoComment implements VideoCommentServerModel { this.deletedAt = hash.deletedAt ? new Date(hash.deletedAt.toString()) : null this.isDeleted = hash.isDeleted this.account = hash.account + this.totalRepliesFromVideoAuthor = hash.totalRepliesFromVideoAuthor this.totalReplies = hash.totalReplies if (this.account) {