1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This commit is contained in:
Eugen Rochko 2017-10-08 22:03:34 +02:00 committed by GitHub
parent cfa68907ae
commit 3888a12c79

View file

@ -11,7 +11,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
body_to_json(prefetched_body) body_to_json(prefetched_body)
end end
return unless expected_type? && supported_context? return unless supported_context? && expected_type?
return if actor_id.nil? || !trustworthy_attribution?(@json['id'], actor_id) return if actor_id.nil? || !trustworthy_attribution?(@json['id'], actor_id)