diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-31 22:59:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 22:59:30 +0200 |
commit | 3b27b09acbbcd5ad920da68cbcfb30eafa792fa5 (patch) | |
tree | 0e74c6bd27ac02831be7ee62a885d6f64d71d6b2 /app/controllers | |
parent | 5ef216d032469aa38c437b57a3871d5c3d992549 (diff) |
Fix some IDs in instance actor outbox (#16343)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/activitypub/outboxes_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/activitypub/outboxes_controller.rb b/app/controllers/activitypub/outboxes_controller.rb index 111285036..4a52560ac 100644 --- a/app/controllers/activitypub/outboxes_controller.rb +++ b/app/controllers/activitypub/outboxes_controller.rb @@ -29,7 +29,7 @@ class ActivityPub::OutboxesController < ActivityPub::BaseController ) else ActivityPub::CollectionPresenter.new( - id: account_outbox_url(@account), + id: outbox_url, type: :ordered, size: @account.statuses_count, first: outbox_url(page: true), @@ -47,11 +47,11 @@ class ActivityPub::OutboxesController < ActivityPub::BaseController end def next_page - account_outbox_url(@account, page: true, max_id: @statuses.last.id) if @statuses.size == LIMIT + outbox_url(page: true, max_id: @statuses.last.id) if @statuses.size == LIMIT end def prev_page - account_outbox_url(@account, page: true, min_id: @statuses.first.id) unless @statuses.empty? + outbox_url(page: true, min_id: @statuses.first.id) unless @statuses.empty? end def set_statuses |