From f8868f1fed13bad43c113fb1226dee30e6c36776 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Mon, 6 Apr 2020 22:46:52 -0400 Subject: [PATCH] fix mention on remote statuses --- src/app/components/create-status/create-status.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index 41f05df0..3287c6b8 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -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); }