aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
diff options
context:
space:
mode:
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.ts6
1 files changed, 1 insertions, 5 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 e3f164b94..2ddc7787c 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
@@ -60,11 +60,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
60 if (this.parentComment) { 60 if (this.parentComment) {
61 const mentions = this.parentComments 61 const mentions = this.parentComments
62 .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves 62 .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves
63 .map(c => { 63 .map(c => c.by)
64 if (c.account.host) return '@' + c.account.name + '@' + c.account.host
65
66 return c.account.name
67 })
68 64
69 const mentionsSet = new Set(mentions) 65 const mentionsSet = new Set(mentions)
70 const mentionsText = Array.from(mentionsSet).join(' ') + ' ' 66 const mentionsText = Array.from(mentionsSet).join(' ') + ' '