Commit Graph
403 Commits
Author SHA1 Message Date
Sam May f67d501b96 mastoapi: add uri field to verify_credentials
Mastodon split the field out from `url` for identification purposes in
version 4.2.0, leaving the previous for simply navigating to the user
page.  Some services (notably Bridgy Fed) rely on the `uri` as part of
their OAuth flow: https://github.com/snarfed/bridgy-fed/issues/2339
2026-02-10 12:19:07 -08:00
grunfink d0906957cd mastoapi: added a (dummy) client_secret_expires_at value in app creation. 2026-02-10 06:10:29 +01:00
grunfink 28d21ff667 Merge pull request 'Bug fix: Poll voting in mastoapi: Check global object store + Prevent voting when not allowed' (#552) from davidrv00/snac2-fork:vote-fix into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/552
2026-02-07 17:04:00 +01:00
David Vaughan 8c959fcd64 Prevent voting via mastoapi if closed or we already voted 2026-02-06 16:02:27 -08:00
David Vaughan fdb2be4621 Check global object store for poll id when voting via mastoapi 2026-02-06 12:08:18 -08:00
David Vaughan 140247f1fd Add poll creation to mastoapi 2026-02-06 12:07:10 -08:00
violette de9d546d70 Added emoji categories. 2026-01-12 06:03:04 +01:00
violette 54bb1626d2 mastoapi: also return children of children. 2026-01-12 05:33:48 +01:00
grunfink b6414bd2c4 mastoapi: hide EmojiReacts from muted actors and block instances. 2026-01-06 15:00:45 +01:00
grunfink 11af00194e Bumped copyright year. 2026-01-01 17:01:03 +01:00
fruye c5824038b8 mastoapi: fixed status visibility error. 2025-12-22 20:52:14 +01:00
violette e233f3f904 Some fixes. 2025-12-19 09:54:50 +01:00
grunfink 2903b29e65 Fixed more minor leaks. 2025-12-18 08:58:04 +01:00
grunfink c8ee70f6df Fixed some xs_fmt() usages. 2025-12-18 08:20:15 +01:00
violette 85ed0eb0d5 Added emoji reactions (contributed by violette). 2025-12-18 07:58:24 +01:00
grunfink a8b706b193 Fixed small memory leak. 2025-12-09 05:01:06 +01:00
violette p. 4102a6a7ac make webpush use our notification server vkey instead of a random, ill-formated
key (necessary for some client notifications, such as moshidon)
2025-12-09 04:58:13 +01:00
rako a45c1ce152 Fix user matching
In order to be a proper prefix, the actor url must end with a '/'
otherwise it can match another user that starts with the same prefix:
for example 'testuser' will match anything made by 'testuser2'
2025-11-30 21:19:13 +01:00
Stefano Marinelli bebb2c7439 Instead of comparing the output status with == 200, it's better to check using valid_status() 2025-10-21 12:29:56 +02:00
Stefano Marinelli 2d433afc27 Enhances Mastodon API compatibility by adding support for displaying remote users' follower/following/post counts and their posts when viewing profiles in Mastodon-compatible apps (Fedilab, Tusky, etc.).
Fixes for Moshidon and improvements for better compatibility with HAProxy
2025-10-18 21:33:31 +02:00
grunfink 212284c792 xs_http.h: new file. 2025-10-13 13:07:06 +02:00
grunfink 885ee3f5b9 mastoapi: added deleting for posts.
I'm sure that I've done this before, but whatever.
2025-10-10 21:17:54 +02:00
grunfink ab698c2bd6 Merge pull request 'implementing scopes' (#474) from byte/snac2:feature/visibility into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/474
2025-09-28 15:46:56 +02:00
byte d23ac2b9f5 making sure that global data is immutable 2025-09-22 23:27:47 +00:00
byte dcf5acaf53 implementing visibility scopes 2025-09-20 17:16:54 +02:00
grunfink 9eb2f672f9 mastoapi: Fixed incorrect messages in status query. 2025-09-14 00:30:00 +02:00
grunfink 4661d7f5bc Renamed function list_content() to list_members(). 2025-09-03 06:38:07 +02:00
grunfink 7f18d1c7d7 mastoapi: avoid repeating entries. 2025-08-14 09:58:21 +02:00
grunfink 53216694cf Updated some comments. 2025-08-01 08:11:59 +02:00
grunfink 1a84c5eb6d mastoapi: the 'approve_followers' toggle can also be set from apps. 2025-07-27 04:23:31 +02:00
grunfink 2e982c79e1 mastoapi: Fixed metadata in verify_credentials. 2025-07-27 04:08:37 +02:00
grunfink daeb5a1cc5 mastoapi: fixed the fix. 2025-07-05 19:21:31 +02:00
grunfink 42895f7be2 mastoapi: fixed a bug in mastoapi_timeline(). 2025-07-05 19:11:05 +02:00
grunfink fa986ad91e Added support for /api/v1/instance/extended_description (with a hardcoded text). 2025-06-21 19:08:38 +02:00
grunfink 5a0f23c76a mastoapi: Added followed hashtag maintenance. 2025-06-16 05:44:23 +02:00
grunfink f8055ccfb5 mastoapi: added entrypoint /v1/followed_tags. 2025-06-16 05:11:33 +02:00
grunfink 55213f660d mastoapi: another try to fix collapsing boosted posts in some apps. 2025-06-12 10:59:26 +02:00
grunfink 699d22a864 mastoapi: reverted reblog id, as it was breaking things. 2025-06-11 19:54:07 +02:00
grunfink cc0e90fbf7 mastoapi: fixed reblog identifiers.
This fixes weird behaviour in apps like Tusky, where boosts' content disappear
after clicking on them.
2025-06-11 04:40:47 +02:00
grunfink 34d85b3e1b mastoapi: fixed uploaded images name collision. 2025-05-29 13:12:43 +02:00
grunfink 5bc4511594 New function timeline_here(). 2025-05-27 21:14:23 +02:00
grunfink 631e44a64a Renamed timeline_here() to timeline_here_by_md5(), as it always should have been. 2025-05-27 21:08:57 +02:00
grunfink 56816b3051 Minor memory leak fixes. 2025-05-22 11:18:48 +02:00
grunfink 096bb21710 Merge pull request 'use utf-8 lowercase function for tags #396' (#400) from postscriptum/snac2:utf8-lower-tags into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/400
2025-05-22 11:15:07 +02:00
postscriptum 450e679f51 add missed replacement to the mastoapi_get_handler function (search case) 2025-05-22 04:37:13 +03:00
postscriptum ec37139f5a cleanup ending spaces 2025-05-22 04:35:52 +03:00
green 321f64ed70 performance: use following_list_len in more places 2025-05-19 15:25:11 +02:00
grunfink 31b0f750a8 mastoapi: added post endpoints for 'authorize' and 'reject' follow requests. 2025-05-18 09:11:40 +02:00
grunfink 0900f69f2a mastoapi: added endpoint /v1/follow_requests. 2025-05-18 08:43:31 +02:00
grunfink 8ae0089bdb mastoapi: Also process the types[] argument in notifications. 2025-05-14 08:48:15 +02:00