Commit 0e6085da authored by Dee's avatar Dee

Fix pagination in AP outbox.json

parent f95a2b2c
......@@ -227,11 +227,12 @@ def render("outbox.json", %{user: user, max_id: max_qid}) do
activities = ActivityPub.fetch_user_activities(user, nil, params)
# this is sorted chronologically, so first activity is the newest (max)
{max_id, min_id, collection} =
if length(activities) > 0 do
{, 0).id,, 0).id,, 0).id,, fn act ->
{:ok, data} = Transmogrifier.prepare_outgoing(
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment