diff options
author | lain <lain@soykaf.club> | 2021-01-05 12:40:45 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-05 12:40:45 +0000 |
commit | 20a269ed694127ca59ece9c2e4865a627b4daad3 (patch) | |
tree | 4fff3f4fa54e70487f2c2f603648f632ee7c6db3 /lib/pleroma/web/activity_pub | |
parent | 7a03b112f2ae0acbb546975a3cb57f63ab69708d (diff) | |
parent | 95a0ae8a35f97eb27423ca0e7da722e8f7f135e5 (diff) | |
download | pleroma-20a269ed694127ca59ece9c2e4865a627b4daad3.tar.gz |
Merge branch 'fix/pagination-regression' into 'develop'
Do not try to guess which pagination we need by the existence of an :offset param.
Closes #2399
See merge request pleroma/pleroma!3230
Diffstat (limited to 'lib/pleroma/web/activity_pub')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 3e346d49a..8c2610eeb 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -608,11 +608,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do |> Map.put(:muting_user, reading_user) end - pagination_type = - cond do - !Map.has_key?(params, :offset) -> :keyset - true -> :offset - end + pagination_type = Map.get(params, :pagination_type) || :keyset %{ godmode: params[:godmode], |