Guard against nil URLs in Request class (#7284)

Fix #7265
This commit is contained in:
Eugen Rochko
2018-05-02 15:44:22 +02:00
committed by GitHub
parent 6c40e567aa
commit 965345316f
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,8 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
include JsonLdHelper
def call(account)
return if account.featured_collection_url.blank?
@account = account
@json = fetch_resource(@account.featured_collection_url, true)