]> cat aescling's git repositories - mastodon.git/commitdiff
Fix NoMethodError at ActivityPub::FetchRemoteStatusService (#5753)
authorabcang <abcang1015@gmail.com>
Sun, 19 Nov 2017 14:33:15 +0000 (23:33 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 19 Nov 2017 14:33:15 +0000 (15:33 +0100)
app/services/activitypub/fetch_remote_status_service.rb

index 8d7b7a17cea4e6affd907684b367ad0f64ed697c..8de9283de5ec518ec91ef8b5e5741472a99cb6c1 100644 (file)
@@ -18,7 +18,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
     actor = ActivityPub::TagManager.instance.uri_to_resource(actor_id, Account)
     actor = ActivityPub::FetchRemoteAccountService.new.call(actor_id, id: true) if actor.nil? || needs_update(actor)
 
-    return if actor.suspended?
+    return if actor.nil? || actor.suspended?
 
     ActivityPub::Activity.factory(activity_json, actor).perform
   end