aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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) => {