profile page

This commit is contained in:
Xamora 2024-02-02 11:16:25 +01:00 committed by AdrienLSH
parent c96c261082
commit b44e3bac6f

View File

@ -57,9 +57,9 @@ export default class extends AbstractView {
block.id = "block";
block.onclick = async () => {
if (!this.profile.isBlocked)
await client.profiles.block(this.userId);
await client.profiles.block(this.user_id);
else
await client.profiles.deblock(this.userId);
await client.profiles.deblock(this.user_id);
this.profile = await client.profiles.getProfile(this.username);
this.blockButton();