mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 19:03:41 +00:00
Fix NoMethodError in ActivityPub::FetchFeaturedCollectionService (#34811)
This commit is contained in:
parent
bd0c865bbb
commit
b38bbd04ea
|
|
@ -9,6 +9,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
|
||||||
@account = account
|
@account = account
|
||||||
@options = options
|
@options = options
|
||||||
@json = fetch_collection(options[:collection].presence || @account.featured_collection_url)
|
@json = fetch_collection(options[:collection].presence || @account.featured_collection_url)
|
||||||
|
return if @json.blank?
|
||||||
|
|
||||||
process_items(collection_items(@json))
|
process_items(collection_items(@json))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user