summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-04-11 12:02:48 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-11 12:02:48 +0200
commit8890d7d68e6b3781ba9f1430e89bb21a28eecf5e (patch)
tree91dd482028ccc3513e32d377e511c18323ce0c4f /src
parentb1d770361358fd8d03c362682b13409c91ae435b (diff)
use full handle in automatic handles
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src')
-rw-r--r--src/components/Composer/Composer.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue
index ca48f66c..b837e013 100644
--- a/src/components/Composer/Composer.vue
+++ b/src/components/Composer/Composer.vue
@@ -305,11 +305,17 @@ export default {
return
}
+ let handle = account.acct
+
+ if (!handle.includes('@')) {
+ handle += `@${this.hostname}`
+ }
+
this.$refs.composerInput.innerHTML = `
<span class="mention" contenteditable="false">
<a href="${account.url}" target="_blank">
<img src="${account.avatar}"/>
- @${account.acct}
+ @${handle}
</a>
</span>&nbsp;`
this.updateStatusContent()