Merge branch 'fix/pagination-regression' into 'develop'
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index 3e346d49a7a0c5a7bd3d5aebb4298093d4074e1d..8c2610eeb377ac192105d0b042ca73f8f96e740a 100644 (file)
@@ -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],