Open mentions in new tab

This commit is contained in:
Chocobozzz 2018-02-21 17:38:23 +01:00
parent 34333925d2
commit b10ba55aca
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 6 deletions

View 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(' ') + ' '

View File

@ -100,7 +100,7 @@ export class VideoCommentComponent implements OnInit, OnChanges {
allowedTags: [ 'a', 'p', 'span', 'br' ],
allowedSchemes: [ 'http', 'https' ],
allowedAttributes: {
'a': [ 'href', 'class' ]
'a': [ 'href', 'class', 'target' ]
},
transformTags: {
a: (tagName, attribs) => {