0
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)