Fix '@' missing in comment mention
authorChocobozzz <me@florianbigard.com>
Wed, 21 Mar 2018 08:35:11 +0000 (09:35 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 21 Mar 2018 08:35:11 +0000 (09:35 +0100)
client/src/app/videos/+video-watch/comment/video-comment-add.component.ts

index 2ddc7787c625db7664eb2f94828bd60fe6b1e24e..731652fda4ba4a52a8f65430cae76d7874be5f18 100644 (file)
@@ -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(' ') + ' '