Commit graph

20 commits

Author SHA1 Message Date
0d19f9fa33 Slon/Api/V1/Accounts: Handle badly-behaved JSON API clients
An array of String is still an array, even if it contains a single
element. I'm looking at you,
[Tuba](https://github.com/GeopJr/Tuba/blob/main/src/API/Relationship.vala#L48).

Ref: https://docs.joinmastodon.org/methods/accounts/#relationships

It shouldn't be our responsibility to handle this, but life isn't fair,
so we'll begrudgingly handle it anyway.
2025-03-21 16:34:55 -04:00
5010de73a0 Slon/Api/V1/Accounts: Fix nested for loops in @slon_api_v1_accounts_get 2025-03-10 09:12:05 -04:00
ba296cceb8 Slon/Api/V1/Accounts: Create relationship object in session's mem_task
This fixes a crash when the Mona iOS client makes a GET request to the
/api/v1/accounts/relationships endpoint.
2025-03-10 08:21:40 -04:00
d5a09373e4 Everywhere: Update JSON API 2025-03-09 19:39:44 -04:00
aded79c192 Slon/Modules/Db: Save/load accounts to/from individual JSON files 2025-03-06 10:54:25 -05:00
64f31de070 Everywhere: Use slon_mem_task for memory allocation 2025-03-06 09:54:26 -05:00
33a92718c7 Slon/Api/V1/Accounts: Handle array of ids for /api/v1/accounts/relationships 2025-03-05 13:04:22 -05:00
b8fba64ab0 Slon/Api/V1/Accounts: Allow updating avatar/header images via PATCH /api/v1/accounts/update_credentials 2025-03-04 20:46:43 -05:00
19893a775d Slon/Api/V1/Accounts: Deduplicate relationship object creation into @slon_accounts_default_relationship_object 2025-02-23 06:13:19 -05:00
8838d0446d Everywhere: Deduplicate local account creation for remote actors in @slon_accounts_create_local_for_remote_actor 2025-02-22 21:43:19 -05:00
6c87604d56 Everywhere: Deduplicate status queries into @slon_api_v1_statuses_query 2025-02-22 20:58:56 -05:00
045893b6c6 Everywhere: Be more granular with @db_save_* calls 2025-02-22 20:38:35 -05:00
a9f5a1de0c Slon/Modules/ActivityPub: Deduplicate signed requests into @slon_activitypub_signed_request 2025-02-22 19:25:23 -05:00
545d408512 Everywhere: Make session->path(), session->path_count() callable 2025-02-21 16:51:22 -05:00
69a4d6916f Slon/Api/V1/Accounts,Timelines: Sort statuses by most recent first 2025-02-20 14:28:39 -05:00
c6f74cfa84 Everywhere: Make session->send() callable 2025-02-20 08:24:04 -05:00
6813c13ab3 Everywhere: Make session->status() callable 2025-02-19 21:07:09 -05:00
16d65c88ee Slon/Api/V1/Accounts: Implement Follow 2025-02-17 17:39:49 -05:00
8730286ca1 Slon/Api/V1/Accounts: Initial support for relationships method (following, followed_by) 2025-02-17 08:19:37 -05:00
52cb92f587 Meta: Add files to repository 2025-02-16 15:21:19 -05:00