Fix nil account issue in ProcessAccountService (#7019)

This commit is contained in:
Nolan Lawson authored and Eugen Rochko committed 2018-04-03 13:08:11 +02:00
1 parent 2e59751823
commit 6ff3b3e4db
1 file changed
+1 -1
@@ -28,7 +28,7 @@ class ActivityPub::ProcessAccountService < BaseService
after_protocol_change! if protocol_changed?
after_key_change! if key_changed?
check_featured_collection! if @account.featured_collection_url.present?
check_featured_collection! if @account&.featured_collection_url&.present?
@account
rescue Oj::ParseError