This commit is contained in:
Nicolas Constant 2019-03-05 23:02:29 -05:00
parent 027afc6c2a
commit 7c3e3f42ff
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 9 deletions

View File

@ -39,15 +39,7 @@ export class CreateStatusComponent implements OnInit {
} else {
this.statusReplyingTo = this.statusReplyingToWrapper.status;
}
// const mentions = [...this.statusReplyingTo.mentions.map(x => x.acct), this.statusReplyingTo.account.acct];
// let uniqueMentions = [];
// for(const mention of mentions){
// if(!uniqueMentions.includes(mention)){
// uniqueMentions.push(mention);
// }
// }
const uniqueMentions = this.getMentions(this.statusReplyingTo, this.statusReplyingToWrapper.provider);
for (const mention of uniqueMentions) {
this.status += `@${mention} `;