diff --git a/components/content/ContentMentionGroup.vue b/components/content/ContentMentionGroup.vue
index cdb9f877..9878e411 100644
--- a/components/content/ContentMentionGroup.vue
+++ b/components/content/ContentMentionGroup.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue
index cd8b94d1..cb803a0f 100644
--- a/components/publish/PublishWidget.vue
+++ b/components/publish/PublishWidget.vue
@@ -133,9 +133,9 @@ defineExpose({
:class="[isSending ? 'pointer-events-none' : '', isOverDropZone ? '!border-primary' : '']"
>
-
- @{{ m }}
-
+
diff --git a/composables/masto/account.ts b/composables/masto/account.ts
index 2abb5a43..b97c4ba1 100644
--- a/composables/masto/account.ts
+++ b/composables/masto/account.ts
@@ -7,10 +7,14 @@ export function getDisplayName(account: mastodon.v1.Account, options?: { rich?:
return displayName.replace(/:([\w-]+?):/g, '')
}
+export function acctToShortHandle(acct: string) {
+ return `@${acct.includes('@') ? acct.split('@')[0] : acct}`
+}
+
export function getShortHandle({ acct }: mastodon.v1.Account) {
if (!acct)
return ''
- return `@${acct.includes('@') ? acct.split('@')[0] : acct}`
+ return acctToShortHandle(acct)
}
export function getServerName(account: mastodon.v1.Account) {