From: Chocobozzz Date: Wed, 21 Mar 2018 08:35:11 +0000 (+0100) Subject: Fix '@' missing in comment mention X-Git-Tag: v1.0.0-beta.2~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9add00514f89e6e3eefc8f18174338088b9ab12e;p=oweals%2Fpeertube.git Fix '@' missing in comment mention --- 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(' ') + ' '