]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: abort processing of this PuSH in item if we got an exception, rather than...
authorBrion Vibber <brion@pobox.com>
Thu, 25 Feb 2010 02:43:20 +0000 (02:43 +0000)
committerBrion Vibber <brion@pobox.com>
Thu, 25 Feb 2010 02:43:20 +0000 (02:43 +0000)
plugins/OStatus/lib/pushinqueuehandler.php

index a90f52df26fce37b93b7155ad9a217c343aa1481..1fd29ae301b9203595016b4210550260507efde8 100644 (file)
@@ -40,7 +40,11 @@ class PushInQueueHandler extends QueueHandler
 
         $feedsub = FeedSub::staticGet('id', $feedsub_id);
         if ($feedsub) {
-            $feedsub->receive($post, $hmac);
+            try {
+                $feedsub->receive($post, $hmac);
+            } catch(Exception $e) {
+                common_log(LOG_ERR, "Exception during PuSH input processing for $feedsub->uri: " . $e->getMessage());
+            }
         } else {
             common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id");
         }