akkoma/lib/pleroma/web/mastodon_api/controllers
Oneric 521dfa4670 Use keyed lists for pagination with foreign id
The old approach required adding a special virtual field
to any table potentially needing such foreign-id pagination and
also still required manually sorting according to pagiantion settings
since the pagination helper does not know whether
this virtual field was set or not.

Using lists with each entry containing the pagination id and the actual
entry insterad allows any table to use this mechanism unchanged and
does not require manually sorting.

Since it was unused, this also drops the pagination mode paramter from
fetch_favourited_with_fav_id.

Furthermore, as a side effect of this change a bug in the favourite
benchmark is fixed. It used to incorrectly attempt to use IDs of
the liked objects for pagination instead of the like IDs as advertised
in Link headers.
2025-10-09 00:00:00 +00:00
..
account_controller.ex Add ability to auto-approve followbacks 2024-02-13 15:42:37 +01:00
announcement_controller.ex Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' (#85) 2022-07-18 13:08:36 +00:00
app_controller.ex Revert "Merge branch 'remove/mastofe' into 'develop'" 2022-01-08 21:44:37 +00:00
auth_controller.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
conversation_controller.ex Add API endpoint to remove a conversation 2021-02-15 21:48:13 +04:00
custom_emoji_controller.ex Refactor skipped plugs into Pleroma.Web functions 2021-06-08 19:15:04 -05:00
directory_controller.ex MastoAPI: Profile directory 2021-12-26 02:35:17 +00:00
domain_block_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
fallback_controller.ex Let pins federate 2021-03-25 13:03:40 +03:00
filter_controller.ex support for expires_in/expires_at in filters 2021-01-26 08:27:45 +03:00
follow_request_controller.ex paginate follow requests (#460) 2023-02-04 20:51:17 +00:00
instance_controller.ex Refactor skipped plugs into Pleroma.Web functions 2021-06-08 19:15:04 -05:00
list_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
marker_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mastodon_api_controller.ex Refactor skipped plugs into Pleroma.Web functions 2021-06-08 19:15:04 -05:00
media_controller.ex Don't try to handle non-media objects as media 2024-05-22 20:30:23 +02:00
notification_controller.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
poll_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
report_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
scheduled_activity_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
search_controller.ex remove all endpoints marked as deprecated (#91) 2022-07-20 12:00:58 +00:00
status_controller.ex Use keyed lists for pagination with foreign id 2025-10-09 00:00:00 +00:00
subscription_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
suggestion_controller.ex v2 Suggestions: also filter out users you follow 2021-11-26 21:46:08 -06:00
tag_controller.ex Add /api/v1/followed_tags 2022-12-31 18:09:34 +00:00
timeline_controller.ex Add debug logs to timeline rendering to assist debugging 2023-03-29 12:01:16 +01:00