commit: 3888a12c7922ffd9278f2b1a9f73fd92e51789c7
parent: cfa68907aeefca6bb36ae642f409c7856c14563f
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sun, 8 Oct 2017 22:03:34 +0200
Fix #5272 - Order of checks in ActivityPub handler (#5276)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/services/activitypub/fetch_remote_status_service.rb b/app/services/activitypub/fetch_remote_status_service.rb
@@ -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)