]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make sure we don't receiveFeed() in the case of that exception
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 30 Apr 2017 07:31:16 +0000 (09:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 30 Apr 2017 07:31:16 +0000 (09:31 +0200)
plugins/OStatus/classes/FeedSub.php

index 184db68c63f701ddfd769b6a827c0f6b2f4449fc..40d2ef99a9b42c98329c9656bc44517f19e97c32 100644 (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);
     }
 
     /**