mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Continue to use ActivityPub.fetch_user_activities/3, make it pass :offset
This commit is contained in:
parent
4c5f75f4e9
commit
085d4e6cfc
2 changed files with 2 additions and 2 deletions
|
@ -608,7 +608,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
reading_user: reading_user
|
reading_user: reading_user
|
||||||
}
|
}
|
||||||
|> user_activities_recipients()
|
|> user_activities_recipients()
|
||||||
|> fetch_activities(params)
|
|> fetch_activities(params, :offset)
|
||||||
|> Enum.reverse()
|
|> Enum.reverse()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
||||||
{page, page_size} = page_params(params)
|
{page, page_size} = page_params(params)
|
||||||
|
|
||||||
activities =
|
activities =
|
||||||
ActivityPub.fetch_statuses(user, %{
|
ActivityPub.fetch_user_activities(user, nil, %{
|
||||||
limit: page_size,
|
limit: page_size,
|
||||||
offset: (page - 1) * page_size,
|
offset: (page - 1) * page_size,
|
||||||
godmode: godmode,
|
godmode: godmode,
|
||||||
|
|
Loading…
Reference in a new issue