ux: Me becomes Settings; backend: fix special usernames (me, block...)
This commit is contained in:
@ -9,7 +9,7 @@ class MyProfile extends Profile
|
||||
*/
|
||||
constructor (client)
|
||||
{
|
||||
super(client, "me")
|
||||
super(client, "../me")
|
||||
}
|
||||
|
||||
/**
|
||||
@ -19,7 +19,7 @@ class MyProfile extends Profile
|
||||
*/
|
||||
async change_avatar(form_data)
|
||||
{
|
||||
let response = await this.client._patch_file(`/api/profiles/me`, form_data);
|
||||
let response = await this.client._patch_file(`/api/profiles/settings`, form_data);
|
||||
let response_data = await response.json()
|
||||
|
||||
return response_data;
|
||||
@ -27,4 +27,4 @@ class MyProfile extends Profile
|
||||
|
||||
}
|
||||
|
||||
export {MyProfile}
|
||||
export {MyProfile}
|
||||
|
Reference in New Issue
Block a user