Apply 1 suggestion(s) to 1 file(s)
authorfeld <feld@feld.me>
Thu, 31 Dec 2020 15:55:44 +0000 (15:55 +0000)
committerMark Felder <feld@feld.me>
Thu, 31 Dec 2020 15:58:43 +0000 (09:58 -0600)
lib/pleroma/web/activity_pub/activity_pub.ex

index 68494f04708a18948d940c512a097ef99c77f1c9..15f298bb824e2df77cc2718b3c27888fde2f5679 100644 (file)
@@ -605,7 +605,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
 
     pagination_type =
       cond do
-        is_nil(params[:offset]) -> :keyset
+        !Map.has_key?(params, :offset) -> :keyset
         true -> :offset
       end