Handle featured collections without items (#27581)
This commit is contained in:
parent
fa7e64df1d
commit
8f998cd96a
2 changed files with 13 additions and 0 deletions
|
@ -37,6 +37,8 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
|
|||
end
|
||||
|
||||
def process_items(items)
|
||||
return if items.nil?
|
||||
|
||||
process_note_items(items) if @options[:note]
|
||||
process_hashtag_items(items) if @options[:hashtag]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue