From 1ecf709918c23508779946934071eece71bb3402 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 30 Apr 2017 09:31:16 +0200 Subject: [PATCH] Make sure we don't receiveFeed() in the case of that exception --- plugins/OStatus/classes/FeedSub.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index 184db68c63..40d2ef99a9 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -522,6 +522,9 @@ class FeedSub extends Managed_DataObject // while reporting receipt to the server. return; } + + $this->receiveFeed($post); + } catch (FeedSubBadPushSignatureException $e) { // We got a signature, so something could be wrong. Let's check to see if // maybe upstream has switched to another hub. Let's fetch feed and then @@ -536,8 +539,6 @@ class FeedSub extends Managed_DataObject $this->renew(); } } - - $this->receiveFeed($post); } /** -- 2.39.5