Fix '@' missing in comment mention

pull/370/head
Chocobozzz 2018-03-21 09:35:11 +01:00
parent 051bf3f773
commit 9add00514f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +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 => c.by)
.map(c => '@' + c.by)
const mentionsSet = new Set(mentions)
const mentionsText = Array.from(mentionsSet).join(' ') + ' '