mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
Fix NoMethodError at ActivityPub::FetchRemoteStatusService (#5753)
This commit is contained in:
parent
53e95c4efc
commit
2bcc81700c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user