profile page
This commit is contained in:
parent
c96c261082
commit
b44e3bac6f
@ -57,9 +57,9 @@ export default class extends AbstractView {
|
|||||||
block.id = "block";
|
block.id = "block";
|
||||||
block.onclick = async () => {
|
block.onclick = async () => {
|
||||||
if (!this.profile.isBlocked)
|
if (!this.profile.isBlocked)
|
||||||
await client.profiles.block(this.userId);
|
await client.profiles.block(this.user_id);
|
||||||
else
|
else
|
||||||
await client.profiles.deblock(this.userId);
|
await client.profiles.deblock(this.user_id);
|
||||||
this.profile = await client.profiles.getProfile(this.username);
|
this.profile = await client.profiles.getProfile(this.username);
|
||||||
|
|
||||||
this.blockButton();
|
this.blockButton();
|
||||||
|
Loading…
Reference in New Issue
Block a user