Fix some IDs in instance actor outbox (#16343)

pull/1547/head
Claire 2021-05-31 22:59:30 +02:00 committed by GitHub
parent 5ef216d032
commit 3b27b09acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class ActivityPub::OutboxesController < ActivityPub::BaseController
) )
else else
ActivityPub::CollectionPresenter.new( ActivityPub::CollectionPresenter.new(
id: account_outbox_url(@account), id: outbox_url,
type: :ordered, type: :ordered,
size: @account.statuses_count, size: @account.statuses_count,
first: outbox_url(page: true), first: outbox_url(page: true),
@ -47,11 +47,11 @@ class ActivityPub::OutboxesController < ActivityPub::BaseController
end end
def next_page 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 end
def prev_page 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 end
def set_statuses def set_statuses