Commit Graph

21 Commits

Author SHA1 Message Date
Christof Dorner b31c5156ff
Improve hashtag case handling and implement /api/v1/tags/<hashtag> endpoint (#554)
* Lowercase hashtag before loading its timeline

* Implement /api/v1/tags/<hashtag> endpoint

* Lower hashtag before un-/following

* Fix field name for hashtag following/followed boolean
2023-04-06 15:14:21 -06:00
Dan Watson 61830a9a9c
Fix page ordering (#535) 2023-03-10 09:10:34 -07:00
Andrew Godwin 1f3f28e8ff Check scope on API endpoints 2023-02-19 11:37:02 -07:00
Andrew Godwin 91738748ec Fix some imports now hatchway is third party 2023-02-13 21:19:20 -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
Humberto Rocha ccded99a63
Add favourites api endpoint (#465) 2023-01-20 19:49:55 -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 fb881dd5de Fix tests and most of pagination 2023-01-08 23:06:33 -07:00
Andrew Godwin 252737f846 Fix mastodon pagination to use returned IDs 2023-01-03 01:01:20 -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 e2371a3cd7 Move timelines to a service class 2022-12-21 19:47:48 +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 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 7f02d51ba0 Add generic paginator for API 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