Slon/Modules/Db: Save/load accounts to/from individual JSON files

This commit is contained in:
Alec Murphy 2025-03-06 10:54:25 -05:00
parent 64f31de070
commit aded79c192
3 changed files with 32 additions and 7 deletions

View file

@ -62,7 +62,7 @@ JsonObject* @slon_accounts_create_local_for_remote_actor(SlonHttpSession* sessio
db->a("accounts")->append(Json.CreateItem(account, JSON_OBJECT));
// db->o("statuses")->set(acct->@("id"), Json.CreateArray(), JSON_ARRAY);
@slon_db_save_accounts_to_disk;
@slon_db_save_account_to_disk(account);
@slon_free(session, created_at);
@slon_free(session, id);