diff options
author | Chocobozzz <me@florianbigard.com> | 2020-03-20 14:43:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-03-20 14:43:12 +0100 |
commit | 6cb556449064278bdcb1a54a7b980c2e7bc735f0 (patch) | |
tree | a3d72e90cfc6074a00cd04d5197dded12260b69e /client/src/app/videos/+video-watch/comment/video-comment.component.ts | |
parent | 5db4545cd2af2298ef6514dde2c36edc98ef5e33 (diff) | |
download | PeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.tar.gz PeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.tar.zst PeerTube-6cb556449064278bdcb1a54a7b980c2e7bc735f0.zip |
Fix add comment in threads with deleted comments
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.component.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.ts b/client/src/app/videos/+video-watch/comment/video-comment.component.ts index f7eca45fd..1313b6585 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.ts | |||
@@ -125,7 +125,12 @@ export class VideoCommentComponent implements OnInit, OnChanges { | |||
125 | const html = await this.markdownService.textMarkdownToHTML(this.comment.text, true) | 125 | const html = await this.markdownService.textMarkdownToHTML(this.comment.text, true) |
126 | this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html) | 126 | this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html) |
127 | this.newParentComments = this.parentComments.concat([ this.comment ]) | 127 | this.newParentComments = this.parentComments.concat([ this.comment ]) |
128 | this.commentAccount = new Account(this.comment.account) | 128 | |
129 | this.getUserIfNeeded(this.commentAccount) | 129 | if (this.comment.account) { |
130 | this.commentAccount = new Account(this.comment.account) | ||
131 | this.getUserIfNeeded(this.commentAccount) | ||
132 | } else { | ||
133 | this.comment.account = null | ||
134 | } | ||
130 | } | 135 | } |
131 | } | 136 | } |