From 9add00514f89e6e3eefc8f18174338088b9ab12e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Mar 2018 09:35:11 +0100 Subject: [PATCH] Fix '@' missing in comment mention --- .../videos/+video-watch/comment/video-comment-add.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2ddc7787c..731652fda 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,7 +60,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { if (this.parentComment) { const mentions = this.parentComments .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves - .map(c => c.by) + .map(c => '@' + c.by) const mentionsSet = new Set(mentions) const mentionsText = Array.from(mentionsSet).join(' ') + ' ' -- 2.25.1