diff options
author | abcang <abcang1015@gmail.com> | 2017-11-19 23:33:15 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-11-19 15:33:15 +0100 |
commit | 2bcc81700c586a543e849e222c640df89da7fcb0 (patch) | |
tree | 2ae0dacbb272eef1cb14b7ed706ac1e78a9ef1fb | |
parent | 53e95c4efcc0bbf480e9c416bc0673558aa8e20e (diff) |
Fix NoMethodError at ActivityPub::FetchRemoteStatusService (#5753)
-rw-r--r-- | app/services/activitypub/fetch_remote_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/fetch_remote_status_service.rb b/app/services/activitypub/fetch_remote_status_service.rb index 8d7b7a17c..8de9283de 100644 --- a/app/services/activitypub/fetch_remote_status_service.rb +++ b/app/services/activitypub/fetch_remote_status_service.rb @@ -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 |