mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Slon/Api/V1/Accounts: Allow updating avatar/header images via PATCH /api/v1/accounts/update_credentials
This commit is contained in:
@@ -351,6 +351,10 @@ U0 @slon_db_instance_increment_status_count()
|
||||
|
||||
U0 @slon_db_actors_update_user(JsonObject* acct)
|
||||
{
|
||||
acct->set("avatar_static", acct->@("avatar"));
|
||||
acct->set("header_static", acct->@("header"));
|
||||
@slon_db_save_accounts_to_disk;
|
||||
|
||||
JsonObject* actors = db->o("actors");
|
||||
JsonObject* actor = actors->o(acct->@("username"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user