Browse Source

Update PostComponent, update mention handler. Fixes #2421

Daniel Supernault 4 năm trước cách đây
mục cha
commit
dac060888a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      resources/assets/js/components/PostComponent.vue

+ 3 - 1
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();
       },