access profiles with username instead of id
This commit is contained in:
@ -18,7 +18,7 @@ export default class extends AbstractAuthentificateView
|
||||
}
|
||||
|
||||
async display_avatar() {
|
||||
let profile = await client.profiles.getProfile(client.me.id);
|
||||
let profile = await client.profiles.getProfile(client.me.username);
|
||||
if (profile !== undefined || profile !== null) {
|
||||
if (document.getElementById("avatar") != undefined)
|
||||
document.getElementById("avatar").remove();
|
||||
|
Reference in New Issue
Block a user