Commit 9b635dca authored by natalie's avatar natalie 💜
Browse files

Include local users in mentions

parent 54c85998
Pipeline #227 failed with stages
in 0 seconds
......@@ -237,8 +237,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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment