Commit Graph

36 Commits

Author SHA1 Message Date
Andrew Godwin 252737f846 Fix mastodon pagination to use returned IDs 2023-01-03 01:01:20 -07:00
Cosmin Stejerean efd5f481e9
OAuth2 Fixes (#338)
This implements a few oauth2 fixes:

- passes along the state object
- enforces authorization code expiration (currently set to 1 minute, we could make this configurable)
- enforces redirect_uri
- properly checks for client_secret when granting a token
- handles pulling client authentication for token grant from basic auth
- implement token revocation
2023-01-01 11:46:55 -07:00
Andrew Godwin 8d6f78e29e Don't error on unknown notification types 2022-12-31 10:46:38 -07:00
Cosmin Stejerean eea83214cb
Option to show/hide boosts for a followed user (#317) 2022-12-30 15:03:11 -07:00
Tyler Kennedy a93f03d639
/v1/statuses/{id}/favourited_by (#324) 2022-12-30 11:19:38 -07:00
Tyler Kennedy 9cea7bc124
/v1/accounts/{id}/following and /v1/accounts/lookup support. (#319) 2022-12-29 19:27:43 -07:00
Andrew Godwin 4d3b76612b Accept interactions as pagination anchors
Fixes #316
2022-12-29 14:00:37 -07:00
Andrew Godwin 9c3806a175 Refactor link header and fix empty page case 2022-12-29 11:46:25 -07:00
Andrew Godwin d3fd365a37 Add boost JSON
(also fix hashtag URLs)
Fixes #313
2022-12-29 10:53:31 -07:00
Tyler Kennedy cc7824394b
Fixes for the Toot! client (#248) (#275)
* Various Toot! fixes
* Use a fallback 1x1 pixel image for missing headers, same as Mastodon. The header and header_static are _not_ optional nor nullable according to the spec.
* Try removing some fields which probably shouldn't be set.
* Pagination with next/prev.
2022-12-29 10:31:32 -07:00
Andrew Godwin f6e49e8059 Delete timeline events with posts
Fixes #284
2022-12-27 11:53:44 -07:00
Michael Manfre c969ffc0d6
Ensure OAuth views are provided expected inputs (#246)
Thanks for the report Jochen!
2022-12-23 21:17:13 -07:00
Andrew Godwin 9c376395db Invites overhaul
No email tie, added uses and expires, now works by URL.
2022-12-22 07:03:21 +00:00
Andrew Godwin 3c92aa9c2b Apparently ancestor order matters in the API
Fixes #235
2022-12-22 03:21:31 +00:00
Andrew Godwin da38889aa7 Add account search endpoint 2022-12-21 21:54:49 +00:00
Andrew Godwin e2371a3cd7 Move timelines to a service class 2022-12-21 19:47:48 +00:00
Andrew Godwin bbe60202e7 Add Out Of Band auth token support
Fixes #216
2022-12-21 16:42:44 +00:00
Andrew Godwin d3b9db581e Move familiar followers to right place for URL 2022-12-21 16:22:17 +00:00
Andrew Godwin beff63bbac Add familiar followers endpoint 2022-12-21 16:21:40 +00:00
Andrew Godwin 6039cde49e It's amazing what a little select_related can do 2022-12-20 15:35:48 +00:00
Andrew Godwin 4ad4f468a4 Refactor HTML rendering into one place
Also suppress using external <a> tags for now, until we can separate
them from hashtags properly.
2022-12-20 11:39:45 +00:00
Andrew Godwin db3fc7c53c Fetch actors with posts when needed
Fixes #190, #205
2022-12-20 10:17:52 +00:00
Andrew Godwin 9067caf9a3 Add expanded post context
Fixes #120
2022-12-20 09:59:06 +00:00
Andrew Godwin 5ab5684798 Support query params in redirect URIs 2022-12-19 22:06:40 +00:00
Andrew Godwin 0dca7eae5f Implement API follow/unfollow
Fixes #198
2022-12-19 20:54:09 +00:00
Andrew Godwin 5844b8c18c Emoji API should not need auth
Fixes #204
2022-12-19 00:13:13 +00:00
Andrew Godwin 90c7b615fd Move timelines to published date all around 2022-12-18 09:44:56 -07:00
Andrew Godwin 12567f6891 Identity admin/moderation 2022-12-16 19:42:48 -07:00
Andrew Godwin 3907a10d2e Make emoji picker work on client apps 2022-12-15 16:50:30 -07:00
Michael Manfre 3404b155de FormOrJsonParser api.views.oauth 2022-12-13 20:47:27 -07:00
Andrew Godwin 7f02d51ba0 Add generic paginator for API 2022-12-12 11:56:49 -07:00
Andrew Godwin d5a6cbedd3 Fix notification pagination 2022-12-12 11:56:49 -07:00
Andrew Godwin 20239b5cb7 Basic post mutation 2022-12-12 11:56:49 -07:00
Andrew Godwin fc8a21fc5c More API read coverage 2022-12-12 11:56:49 -07:00
Andrew Godwin 3e062aed36 Timelines working 2022-12-12 11:56:49 -07:00
Andrew Godwin 1017c71ba1 Working start of an OAuth flow 2022-12-12 11:56:49 -07:00