Give the replies
collection an identifier and enable pagination (#10128)
This commit is contained in:
parent
9d3c6f1849
commit
d8498b3983
4 changed files with 67 additions and 3 deletions
|
@ -48,6 +48,12 @@ class ActivityPub::TagManager
|
|||
activity_account_status_url(target.account, target)
|
||||
end
|
||||
|
||||
def replies_uri_for(target, page_params = nil)
|
||||
raise ArgumentError, 'target must be a local activity' unless %i(note comment activity).include?(target.object_type) && target.local?
|
||||
|
||||
replies_account_status_url(target.account, target, page_params)
|
||||
end
|
||||
|
||||
# Primary audience of a status
|
||||
# Public statuses go out to primarily the public collection
|
||||
# Unlisted and private statuses go out primarily to the followers collection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue