Skip to content
Snippets Groups Projects
Commit 2bcc8170 authored by abcang's avatar abcang Committed by Eugen Rochko
Browse files

Fix NoMethodError at ActivityPub::FetchRemoteStatusService (#5753)

parent 53e95c4e
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService ...@@ -18,7 +18,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
actor = ActivityPub::TagManager.instance.uri_to_resource(actor_id, Account) 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) 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 ActivityPub::Activity.factory(activity_json, actor).perform
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment