From 2cebd797014561ebc0bfee07ee8b5d83820adb66 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Jul 2018 10:45:10 +0200 Subject: Fix last commit --- server/models/video/video-comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/video') diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index 03122dc03..f84c1880c 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts @@ -417,7 +417,7 @@ export class VideoCommentModel extends Model { toActivityPubObject (threadParentComments: VideoCommentModel[]): VideoCommentObject { let inReplyTo: string // New thread, so in AS we reply to the video - if ((this.inReplyToCommentId !== null) || (this.InReplyToVideoComment !== null)) { + if (this.inReplyToCommentId === null) { inReplyTo = this.Video.url } else { inReplyTo = this.InReplyToVideoComment.url -- cgit v1.2.3