Commit graph

73 commits

Author SHA1 Message Date
Andrew Godwin
542678cab5 Fix author checks on post attachments
Fixes #538
2023-03-12 16:19:40 -06:00
Dan Watson
cedcc8fa7c
Bookmarks (#537) 2023-03-11 11:17:20 -07:00
Dan Watson
61830a9a9c
Fix page ordering (#535) 2023-03-10 09:10:34 -07:00
Dan Watson
6e8149675c
Fix home timeline pagination 2023-03-09 19:46:57 -07:00
Dan Watson
3bd01b2b3d
Stub out more API, implement preferences and peers (#533) 2023-03-09 14:36:24 -07:00
Dan Watson
6f4abd5aae
Initial support for IceCubes (#532) 2023-03-09 10:47:33 -07:00
Andrew Godwin
5ea3d5d143 Implement a client_credentials process for read 2023-03-06 15:48:43 -07:00
Andrew Godwin
bd6d1ae8de Fix fallback for instance API host
Fixes #522
2023-03-03 15:04:34 -07:00
Andrew Godwin
6411a375ba Allow API access with cookies again 2023-03-02 10:22:37 -07:00
Andrew Godwin
1f3f28e8ff Check scope on API endpoints 2023-02-19 11:37:02 -07:00
Humberto Rocha
e43d0a052c
Fix unliked post displaying in favourites endpoint (#512) 2023-02-15 16:05:48 -07:00
Humberto Rocha
e382994e73
Polls (#496)
Implement poll AP and API backend
2023-02-15 10:42:56 -07:00
Andrew Godwin
91738748ec Fix some imports now hatchway is third party 2023-02-13 21:19:20 -07:00
Andrew Godwin
9a0008db06 Add initial follow import/export
Fixes #437
2023-02-13 20:50:43 -07:00
Andrew Godwin
1c5ef675f0 Implement post editing 2023-02-13 19:40:10 -07:00
Andrew Godwin
7863f89aba Stub out some more empty API endpoints 2023-02-10 16:10:53 -07:00
Andrew Godwin
5d2ed9edfe
Hatchway API Rewrite (#499)
Removes django-ninja and replaces it with a new API framework, "hatchway".

I plan to move hatchway into its own project very soon.
2023-02-07 12:07:15 -07:00
Cosmin Stejerean
9779f867bf
Also read query string params in parse body (#477) 2023-01-28 10:05:28 -07:00
Andrew Godwin
425c77e085 Add /v2/instance 2023-01-25 16:03:02 -07:00
Humberto Rocha
ccded99a63
Add favourites api endpoint (#465) 2023-01-20 19:49:55 -07:00
Andrew Godwin
de9261251e Fixed #421: Allow profile editing via API 2023-01-15 16:15:57 -07:00
Andrew Godwin
9dded19172 Add admin notification for new identities 2023-01-15 14:48:17 -07:00
Andrew Godwin
34b4a6cc10 Implement followers API endpoint 2023-01-15 13:48:06 -07:00
Andrew Godwin
9983544c2a Fix account lookup API to include everyone 2023-01-15 13:45:59 -07:00
Andrew Godwin
b44be55609 Fixed #408: Implemented blocking 2023-01-15 13:35:45 -07:00
TAKAHASHI Shuuji
7f23ae5f52
Support acct with domain name in /api/v1/accounts/lookup (#412) 2023-01-14 10:36:16 -07:00
Andrew Godwin
9876b81f66 Add announcements client API 2023-01-13 16:12:05 -07:00
Corry Haines
28cfbf2ef5
Improve performance on /api/v1/timelines/home (#387)
Prefetch/select required fields for API version of home. Requires considerably more data than HTML version of home.
2023-01-10 17:16:54 -07:00
Andrew Godwin
024d956e5e Handle old IDs coming in for pagination 2023-01-09 09:08:35 -07:00
Andrew Godwin
97d40912ed Fix pagination on home 2023-01-09 09:01:28 -07:00
Andrew Godwin
fb881dd5de Fix tests and most of pagination 2023-01-08 23:06:33 -07:00
Corry Haines
be7ce6ed62
Improve /api/v1/accounts/{id}/statuses perf (#355) 2023-01-05 22:51:02 -07:00
Michael Manfre
1425ae0bde
Update emoji for domain when shortcode doesn't match uri (#359) 2023-01-05 19:57:57 -07:00
Andrew Godwin
252737f846 Fix mastodon pagination to use returned IDs 2023-01-03 01:01:20 -07:00
Andrew Godwin
03bfc417df Fix empty pagination 2023-01-01 13:33: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
b523d34c53 Don't parse the body if it's empty
Refs #290
2022-12-27 16:18:22 -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