fix: search redirection to user profile

This commit is contained in:
AdrienLSH 2024-01-18 13:07:06 +01:00
parent dae01c6821
commit c831a019b2

View File

@ -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);