applied local user mentioning

This commit is contained in:
Puniko 2021-08-29 11:09:03 +02:00
parent 29ef35064c
commit 295aec9dca

View file

@ -246,8 +246,12 @@ export default defineComponent({
this.text += ' ';
}
if (this.reply && this.reply.user.host != null) {
this.text = `@${this.reply.user.username}@${toASCII(this.reply.user.host)} `;
if (this.reply) {
if (this.reply.user.host != null) {
this.text = `@${this.reply.user.username}@${toASCII(this.reply.user.host)} `;
} else if (this.reply.user.username != this.$i.username) {
this.text = `@${this.reply.user.username}@${toASCII(host)} `;
}
}
if (this.reply && this.reply.text != null) {