fixed local users' names showing up twice in mentions
This commit is contained in:
parent
2832ed9770
commit
b64c5179b8
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue