]> cat aescling's git repositories - mastodon.git/commitdiff
Fix nil account issue in ProcessAccountService (#7019)
authorNolan Lawson <nolan@nolanlawson.com>
Tue, 3 Apr 2018 11:08:11 +0000 (04:08 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 3 Apr 2018 11:08:11 +0000 (13:08 +0200)
app/services/activitypub/process_account_service.rb

index cf8462821473770e7454c464f333de6821548d30..21c2fc57aad5d8df5e312a5836ff5feb5366067b 100644 (file)
@@ -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