fixed local users' names showing up twice in mentions

This commit is contained in:
ari melody 2024-06-21 07:47:03 +01:00
parent 2832ed9770
commit b64c5179b8
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,4 @@
import { Client } from '../client/client.js';
import { parseText as parseEmojis } from '../emoji.js';
export default class User {
@ -15,7 +16,8 @@ export default class User {
get mention() {
let res = "@" + this.username;
if (this.host) res += "@" + this.host;
if (this.host != Client.get().instance.host)
res += "@" + this.host;
return res;
}