fix: search redirection to user profile
This commit is contained in:
parent
dae01c6821
commit
c831a019b2
@ -65,7 +65,7 @@ export default class extends AbstractView {
|
||||
let username = document.createElement("a");
|
||||
username.setAttribute('data-link', '');
|
||||
username.id = `username${user.id}`
|
||||
username.href = `/profiles/${user.id}`;
|
||||
username.href = `/profiles/${user.username}`;
|
||||
username.style.color = client.notice.data["online"].includes(user.id.toString()) ? "green" : "red";
|
||||
username.appendChild(document.createTextNode(user.username));
|
||||
new_user.appendChild(username);
|
||||
|
Loading…
Reference in New Issue
Block a user