Everywhere: Be more granular with @db_save_* calls

This commit is contained in:
Alec Murphy 2025-02-22 20:38:35 -05:00
parent a9f5a1de0c
commit 045893b6c6
3 changed files with 5 additions and 4 deletions

View file

@ -51,7 +51,7 @@ U0 @slon_api_v1_accounts_post(SlonHttpSession* session)
db->o("following")->set(my_acct->@("username"), Json.CreateArray(), JSON_ARRAY);
}
db->o("following")->a(my_acct->@("username"))->append(Json.CreateItem(acct->@("remote_actor"), JSON_STRING));
@slon_db_save_to_disk;
@slon_db_save_following_to_disk;
// send Follow request
@slon_api_v1_accounts_follow_request(db->o("actors")->o((my_acct->@("username")))->@("id"), acct->@("remote_actor"));

View file

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