aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-21 17:38:23 +0100
committerChocobozzz <me@florianbigard.com>2018-02-21 17:50:41 +0100
commitb10ba55aca84b4513bc641f8bc7f298cc0f02a9c (patch)
treedf0591f35319d87a17a068a25de8f958ffdcf2a7 /client/src/app
parent34333925d256c566f6f0a35eb511d28d5fa6cf84 (diff)
downloadPeerTube-b10ba55aca84b4513bc641f8bc7f298cc0f02a9c.tar.gz
PeerTube-b10ba55aca84b4513bc641f8bc7f298cc0f02a9c.tar.zst
PeerTube-b10ba55aca84b4513bc641f8bc7f298cc0f02a9c.zip
Open mentions in new tab
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts6
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment.component.ts2
2 files changed, 2 insertions, 6 deletions
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 {
60 if (this.parentComment) { 60 if (this.parentComment) {
61 const mentions = this.parentComments 61 const mentions = this.parentComments
62 .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves 62 .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves
63 .map(c => { 63 .map(c => c.by)
64 if (c.account.host) return '@' + c.account.name + '@' + c.account.host
65
66 return c.account.name
67 })
68 64
69 const mentionsSet = new Set(mentions) 65 const mentionsSet = new Set(mentions)
70 const mentionsText = Array.from(mentionsSet).join(' ') + ' ' 66 const mentionsText = Array.from(mentionsSet).join(' ') + ' '
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.ts b/client/src/app/videos/+video-watch/comment/video-comment.component.ts
index 8f2d79ec1..e7ba64b4d 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment.component.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment.component.ts
@@ -100,7 +100,7 @@ export class VideoCommentComponent implements OnInit, OnChanges {
100 allowedTags: [ 'a', 'p', 'span', 'br' ], 100 allowedTags: [ 'a', 'p', 'span', 'br' ],
101 allowedSchemes: [ 'http', 'https' ], 101 allowedSchemes: [ 'http', 'https' ],
102 allowedAttributes: { 102 allowedAttributes: {
103 'a': [ 'href', 'class' ] 103 'a': [ 'href', 'class', 'target' ]
104 }, 104 },
105 transformTags: { 105 transformTags: {
106 a: (tagName, attribs) => { 106 a: (tagName, attribs) => {