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-add.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-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts index 5784efcdf..0f7c19765 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | |||
@@ -57,7 +57,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
57 | 57 | ||
58 | if (this.parentComment) { | 58 | if (this.parentComment) { |
59 | const mentions = this.parentComments | 59 | const mentions = this.parentComments |
60 | .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves | 60 | .filter(c => c.account && c.account.id !== this.user.account.id) // Don't add mention of ourselves |
61 | .map(c => '@' + c.by) | 61 | .map(c => '@' + c.by) |
62 | 62 | ||
63 | const mentionsSet = new Set(mentions) | 63 | const mentionsSet = new Set(mentions) |