fix mention on remote statuses

This commit is contained in:
Nicolas Constant 2020-04-06 22:46:52 -04:00
parent 918a969c2d
commit f8868f1fed
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 5 additions and 1 deletions

View File

@ -456,7 +456,11 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
let globalUniqueMentions = [];
for (let mention of uniqueMentions) {
if (!mention.includes('@')) {
mention += `@${providerInfo.instance}`;
if (providerInfo) {
mention += `@${providerInfo.instance}`;
} else {
mention += `@${status.url.replace('https://', '').split('/')[0]}`;
}
}
globalUniqueMentions.push(mention);
}