Make sure we don't receiveFeed() in the case of that exception

This commit is contained in:
Mikael Nordfeldth 2017-04-30 09:31:16 +02:00
parent 5288a6f9e2
commit 1ecf709918

View File

@ -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);
}
/**