output repeats at ActivityPub outbox
This commit is contained in:
parent
5d6d86bf00
commit
9c7da2ef48
1 changed files with 2 additions and 7 deletions
|
@ -98,9 +98,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|
||||||
info = User.user_info(user)
|
info = User.user_info(user)
|
||||||
|
|
||||||
params = %{
|
params = %{
|
||||||
"type" => ["Create", "Announce"],
|
|
||||||
"actor_id" => user.ap_id,
|
|
||||||
"whole_db" => true,
|
|
||||||
"limit" => "10"
|
"limit" => "10"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,10 +108,8 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|
||||||
params
|
params
|
||||||
end
|
end
|
||||||
|
|
||||||
activities = ActivityPub.fetch_public_activities(params)
|
activities = ActivityPub.fetch_public_activities(user, nil, params)
|
||||||
min_id = Enum.at(activities, 0).id
|
min_id = Enum.at(Enum.reverse(activities), 0).id
|
||||||
|
|
||||||
activities = Enum.reverse(activities)
|
|
||||||
max_id = Enum.at(activities, 0).id
|
max_id = Enum.at(activities, 0).id
|
||||||
|
|
||||||
collection =
|
collection =
|
||||||
|
|
Loading…
Reference in a new issue