0
0
Fork 0

Fix processing of compacted single-item JSON-LD collections (#28816)

This commit is contained in:
Claire 2024-01-19 13:43:10 +01:00 committed by GitHub
parent 3593ee2e36
commit cf2a2ed71c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 9 deletions

View file

@ -26,9 +26,9 @@ class ActivityPub::FetchRepliesService < BaseService
case collection['type']
when 'Collection', 'CollectionPage'
collection['items']
as_array(collection['items'])
when 'OrderedCollection', 'OrderedCollectionPage'
collection['orderedItems']
as_array(collection['orderedItems'])
end
end