Continue to use ActivityPub.fetch_user_activities/3, make it pass :offset
authorMark Felder <feld@feld.me>
Wed, 30 Dec 2020 22:10:10 +0000 (16:10 -0600)
committerMark Felder <feld@feld.me>
Wed, 30 Dec 2020 22:10:10 +0000 (16:10 -0600)
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex

index 5059bff03b3d88dc1b377ece8e1a2b05c8037058..f82f34de5919a935ad96cefc362cca331703568a 100644 (file)
@@ -608,7 +608,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
       reading_user: reading_user
     }
     |> user_activities_recipients()
-    |> fetch_activities(params)
+    |> fetch_activities(params, :offset)
     |> Enum.reverse()
   end
 
index 9086c49286d8e24878bc5b7fa51c389e178e4552..6ef8d6061a8151c3191c6fdf82756e07d3d122c3 100644 (file)
@@ -106,7 +106,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
       {page, page_size} = page_params(params)
 
       activities =
-        ActivityPub.fetch_statuses(user, %{
+        ActivityPub.fetch_user_activities(user, nil, %{
           limit: page_size,
           offset: (page - 1) * page_size,
           godmode: godmode,