X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment-add.component.ts;h=2ddc7787c625db7664eb2f94828bd60fe6b1e24e;hb=b10ba55aca84b4513bc641f8bc7f298cc0f02a9c;hp=e3f164b94536e687f722cb48e19a8043f89ad100;hpb=e8cb44090e654fda339506dccfcec7fea8722723;p=github%2FChocobozzz%2FPeerTube.git 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 { if (this.parentComment) { const mentions = this.parentComments .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves - .map(c => { - if (c.account.host) return '@' + c.account.name + '@' + c.account.host - - return c.account.name - }) + .map(c => c.by) const mentionsSet = new Set(mentions) const mentionsText = Array.from(mentionsSet).join(' ') + ' '