Commit graph

330 commits

Author SHA1 Message Date
default
71c0799231 mastoapi: more list tweaks. 2024-05-31 10:00:35 +02:00
default
15bca0921f mastoapi: some tweaks to list entry points. 2024-05-31 09:50:37 +02:00
default
a41b66ce08 Updated RELEASE_NOTES. 2024-05-31 09:18:59 +02:00
grunfink
f7baafb416 Merge pull request 'Fix login issues with Mastodon, IceCube, Toot! on iOS' (#174) from louis77/snac2:apps into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/174
2024-05-31 07:00:13 +00:00
Louis Brauer
795790de08 Fix login with IceCubes and Mastodon on iOS 2024-05-31 01:28:29 +02:00
Louis Brauer
7e0ac64b85 Make Oauth login page actually readable on mobile devices 2024-05-31 01:28:20 +02:00
Louis Brauer
ac3b5dcbd4 Merge branch 'master' into announcements 2024-05-30 22:38:05 +00:00
Louis Brauer
c3bcb2bd3b Implement instance announcements 2024-05-31 00:30:37 +02:00
default
a2e08688d5 Fixed minor leak. 2024-05-30 10:49:32 +02:00
Louis Brauer
af8f1ef273 Implement image uploads for Tokodon 2024-05-29 11:53:34 +02:00
Louis Brauer
25ef07b1ec More or less smaller fixes :) 2024-05-27 23:55:51 +02:00
Louis Brauer
dfa0911c88 Implement empty response for /accounts/:id/featured_tags 2024-05-27 19:46:35 +02:00
Louis Brauer
81cf309e4d Implement Mastodon PATCH endpoint for account profile updates 2024-05-27 12:24:17 +02:00
Louis Brauer
0e21d35e80 Use enum instead of numeric status codes for HTTP statuses 2024-05-26 21:45:41 +02:00
default
8cf7559a7e Added more const. 2024-05-23 10:01:37 +02:00
default
4777fc86cb Added const everywhere. 2024-05-21 14:12:15 +02:00
default
e1ce85debd Unified post-like object type match. 2024-05-11 18:46:15 +02:00
default
1531e81a31 Added a skip argument to content_search(). 2024-05-10 11:29:18 +02:00
default
cccc5454c2 Added a maximum results argument to content_search(). 2024-05-09 09:31:10 +02:00
default
8de93b9cd7 mastoapi: some search by content tweaks. 2024-05-09 09:24:39 +02:00
default
2c8d4ce6bd mastoapi: Added content search. 2024-05-09 09:09:22 +02:00
default
6b1721c977 List timelines can now be (manually) navigated from the web UI.
URLs are {srv_baseurl}/{user}/list/{list_id} (you must know the list id).
2024-05-07 19:40:28 +02:00
default
7df69f8f12 Logging, logging, logging everywhere. 2024-05-06 09:04:46 +02:00
default
f67c4cf7d9 More logging! 2024-05-06 06:40:07 +02:00
default
c884f7081a mastoapi: also fix polls from Pleroma. 2024-05-06 05:54:46 +02:00
default
da18efd288 More tweaks to mastoapi lists. 2024-04-29 10:48:48 +02:00
default
f1221808a8 More work in lists. 2024-04-29 10:15:04 +02:00
default
29fb430797 More work in lists. 2024-04-29 09:26:37 +02:00
default
9a13e330f1 More work in lists. 2024-04-29 08:29:18 +02:00
default
8275a5f4d8 Start of list support. 2024-04-29 07:43:01 +02:00
default
6bcb248254 mastoapi: Fixed login bug. 2024-04-27 08:30:56 +02:00
default
be935b32c6 mastoapi: minor tweaks. 2024-04-27 08:02:47 +02:00
default
26840e0dc0 Some tweaks to previous patch. 2024-04-18 17:13:31 +02:00
grunfink
100c9cf569 Merge pull request 'Ability to federate with hidden networks #93 (update for v2.49)' (#149) from iwojima/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/149
2024-04-18 15:12:47 +00:00
default
81cf1e21a6 Better redirection URL building in oauth_post_handler(). 2024-04-14 19:24:06 +02:00
default
c9df6707ab Log status in mastoapi_post_handler(). 2024-04-14 18:31:53 +02:00
default
877fb079f3 mastoapi: 'unfavourite' and 'unreblog' actions now fully work. 2024-04-11 05:12:13 +02:00
default
adf0a13992 If an emoji in emojis.json is an URL to an image, it's stored in the tag list. 2024-03-25 16:15:09 +01:00
default
7aa5250eb8 Backport from xs. 2024-03-15 04:10:11 +01:00
default
504bfa1586 mastoapi: added more dummy fields to accounts. 2024-03-13 10:30:03 +01:00
default
df917f39d0 mastoapi: return a dummy header field in accounts. 2024-03-13 10:07:02 +01:00
default
f485dbdaf0 Added actor refreshing via the user queue. 2024-03-12 17:54:54 +01:00
default
05fc062cb3 Some formatting tweaks. 2024-03-12 07:03:44 +01:00
iwojim0
7312f4ce51 Ability to federate with hidden networks #93 (update for v2.49) 2024-03-09 14:37:54 +00:00
default
91bb0615d9 Replaced most xs_dict_iter() with xs_dict_next(). 2024-03-09 08:44:48 +01:00
default
c28ab1e72b mastoapi: Added a dummy streaming_api URL. 2024-03-06 18:13:16 +01:00
default
127f40905e mastoapi: added search by tag. 2024-03-02 05:56:02 +01:00
default
5cb4d249a9 mastoapi: Correctly show 'Video' objects in /timelines/home. 2024-03-01 15:34:50 +01:00
default
69724220a4 mastoapi: Fixed bug in account searching. 2024-03-01 15:09:55 +01:00
default
33e410301b mastoapi: check the url before checking. 2024-02-28 15:20:21 +01:00
default
91207fbe39 mastoapi: fixed a bug in validated links. 2024-02-28 15:16:28 +01:00
default
a3b9ef5b98 The link verification time is stored as a time_t.
This way, it will be easier in an eventual future to test if
a link verification is too old to be trusted.
2024-02-20 06:10:42 +01:00
default
263e239653 Moved verified links to its own json file. 2024-02-15 17:34:46 +01:00
default
2afcb4b6ec mastoapi: fill the verified_at fields in mastoapi_account() for local users. 2024-02-15 10:46:16 +01:00
default
b4208bfec9 Renamed validated_metadata to validated_links. 2024-02-15 10:33:33 +01:00
default
ec35ad451f mastoapi: added verified_at dates for verified links. 2024-02-14 23:03:32 +01:00
default
0930ce726f New function is_msg_from_private_user(). 2024-02-10 09:08:09 +01:00
default
151c5aa6ec mastoapi: Skip non-public posts from timelines by tag. 2024-02-10 08:49:55 +01:00
default
5acf1395ec mastoapi: added support for /api/v1/timelines/tag/. 2024-02-09 21:24:44 +01:00
default
4e35b4b865 Added paging to notify_list(), and use it in the notifications page. 2024-02-05 19:34:27 +01:00
default
729ad476f0 notify_list() no longer has a new_only argument. 2024-02-05 10:18:38 +01:00
Paul Wilde
d7978621ed formatting 2024-01-28 21:14:46 +00:00
Paul Wilde
f0c46a7c1f cleanup 2024-01-28 21:07:31 +00:00
Paul Wilde
ddfd8aaca9 cleanup 2024-01-28 21:06:36 +00:00
Paul Wilde
9568ec8bfe cleanup 2024-01-28 21:04:11 +00:00
Paul Wilde
253e627ee0 make compatible with subway tooter app 2024-01-28 20:55:43 +00:00
default
40076e969c mastoapi: avoid crashing on empty payloads. 2024-01-26 19:01:59 +01:00
default
2d4860d57e Use get_attachments() in mastoapi_status(). 2024-01-24 19:58:51 +01:00
default
581b0764fe Fixed typo. 2024-01-23 16:28:52 +01:00
default
8f34c2e740 mastoapi: added /v1/statuses put support (note edit). 2024-01-23 16:21:48 +01:00
default
f5031ede27 mastoapi: added support for status/.../source. 2024-01-23 15:40:25 +01:00
default
49d707078b Mastoapi: fixed an error the edited_at field. 2024-01-19 09:35:42 +01:00
default
65040b65a3 New function get_atto(), to get the attributedTo field. 2024-01-18 23:04:37 +01:00
default
9185cc4baa Minor tweak for better corruption detection. 2024-01-12 11:03:29 +01:00
default
5532a3e8bd More tries to fix crashes in mastoapi_account(). 2024-01-11 21:33:41 +01:00
default
adf5623044 Avoid invalid actors in mastoapi_status(). 2024-01-11 20:20:01 +01:00
default
f7015019d3 Silenced some unused argument warnings. 2024-01-11 18:55:09 +01:00
default
eaeb776446 Set the 'bot' field in verify_credentials to the matching value. 2024-01-11 18:49:26 +01:00
James Seward
c3fb6bab77 Support DELETE for Mastodon subscriptions
While testing Mona, I noticed that after deleting my account entry for
my snac server, Mona would repeatedly try to delete the subscription it
thought it had created, resulting in many unhandled DELETE calls.

This accepts the call and returns 200 for it, which makes Mona happy.
2024-01-11 13:38:08 +00:00
James Seward
ca27d0248a Add missing fields to account verification
This allows the Mona iOS app to successfully sign in.

I wasn't sure what a suitable value for `last_status_at` would be so I
just copied `published` since it's the right format.

This also just sets the `bot` field to false regardless of the user's
configuration, which probably isn't ideal.
2024-01-11 13:36:16 +00:00
default
cc535e9958 Added more webfinger checks, just to be sure. 2024-01-10 19:23:34 +01:00
default
755d997fb1 Updated copyright year. 2024-01-04 09:22:03 +01:00
default
af912dba0b actor_request() accepts again an optional snac argument. 2023-12-17 19:53:54 +01:00
default
c06b74cc8e Revert "Reverted actor_request() without user."
This reverts commit 8d0a69cd75.
2023-12-11 10:12:57 +01:00
default
8d0a69cd75 Reverted actor_request() without user.
Some sites require even Person requests to be signed.
2023-12-11 08:00:49 +01:00
default
0e6c5f9463 actor_request() does not need a user argument. 2023-12-10 17:46:54 +01:00
default
01c21d57ec mastoapi: fixed crash processing kbin boosts. 2023-12-05 19:37:27 +01:00
default
756b0c98ee mastoapi: correctly print the auth key in the sepcial urn:ietf... case. 2023-12-05 05:47:53 +01:00
default
f1afe4416d Fill the 'fields' list in mastoapi_account(). 2023-12-03 10:57:54 +01:00
default
f5bf8ef7e1 mastoapi: patched dates to match the funny timezone Mastodon uses. 2023-12-03 10:05:04 +01:00
default
68b7947159 mastoapi: return some dummy values in verify_credentials. 2023-12-03 09:24:02 +01:00
default
80c5bac826 Backport from xs. 2023-11-17 08:51:53 +01:00
default
b199f223e4 Tag indexes are also purged. 2023-11-08 18:15:51 +01:00
default
5e8eb5f171 mastoapi: implemented /api/v1/accounts/lookup. 2023-10-28 07:10:21 +02:00
default
b7d0f297c3 mastoapi: Don't exclude posts of type Page or Article. 2023-10-16 20:49:58 +02:00
default
8018f8c1d4 Fixed crash. 2023-10-16 18:40:43 +02:00
default
3b88cfe992 Fixed bug that crashed Tusky. 2023-10-13 09:29:55 +02:00
default
3385bda618 Minor URI tweak. 2023-10-13 09:14:11 +02:00
default
7c1550e566 mastoapi: boosted posts by others are correctly returned. 2023-10-13 09:01:07 +02:00
default
b08d455295 mastoapi: show any boosted note, not only by us. 2023-10-13 08:33:57 +02:00