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(' ') + ' '
allowedTags: [ 'a', 'p', 'span', 'br' ],
allowedSchemes: [ 'http', 'https' ],
allowedAttributes: {
- 'a': [ 'href', 'class' ]
+ 'a': [ 'href', 'class', 'target' ]
},
transformTags: {
a: (tagName, attribs) => {