From 3888a12c7922ffd9278f2b1a9f73fd92e51789c7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 8 Oct 2017 22:03:34 +0200 Subject: [PATCH] Fix #5272 - Order of checks in ActivityPub handler (#5276) --- app/services/activitypub/fetch_remote_status_service.rb | 2 +- 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 index c7414f161..e2a89a87c 100644 --- 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)