Skip to content

Commit

Permalink
Update PostComponent, update mention handler. Fixes #2421
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Dec 1, 2020
1 parent e51665f commit dac0608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/assets/js/components/PostComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down

0 comments on commit dac0608

Please sign in to comment.