Skip to content
Snippets Groups Projects
Commit 3888a12c authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #5272 - Order of checks in ActivityPub handler (#5276)

parent cfa68907
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
body_to_json(prefetched_body)
end
return unless expected_type? && supported_context?
return unless supported_context? && expected_type?
return if actor_id.nil? || !trustworthy_attribution?(@json['id'], actor_id)
......
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