]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
Open mentions in new tab
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment-add.component.ts
index e3f164b94536e687f722cb48e19a8043f89ad100..2ddc7787c625db7664eb2f94828bd60fe6b1e24e 100644 (file)
@@ -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(' ') + ' '