From dac060888ab771ba20bdbbc462754261c219904e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 30 Nov 2020 22:19:29 -0700 Subject: [PATCH] Update PostComponent, update mention handler. Fixes #2421 --- resources/assets/js/components/PostComponent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index ec5a64047..e12d0b563 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -1149,8 +1149,10 @@ export default { this.replyToIndex = index; this.replyingToId = e.id; this.reply_to_profile_id = e.account.id; + let username = e.account.local ? '@' + e.account.username + ' ' + : '@' + e.account.acct + ' '; if(prependUsername == true) { - this.replyText = '@' + e.account.username + ' '; + this.replyText = username; } $('textarea[name="comment"]').focus(); },