Continue to use ActivityPub.fetch_user_activities/3, make it pass :offset

This commit is contained in:
Mark Felder 2020-12-30 16:10:10 -06:00
parent 4c5f75f4e9
commit 085d4e6cfc
2 changed files with 2 additions and 2 deletions
lib/pleroma/web
activity_pub
admin_api/controllers

View file

@ -608,7 +608,7 @@ def fetch_user_activities(user, reading_user, params \\ %{}) do
reading_user: reading_user
}
|> user_activities_recipients()
|> fetch_activities(params)
|> fetch_activities(params, :offset)
|> Enum.reverse()
end

View file

@ -106,7 +106,7 @@ def list_user_statuses(%{assigns: %{user: admin}} = conn, %{"nickname" => nickna
{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,