]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SubMirror/lib/mirrorqueuehandler.php
Fix mising require_once (now required here because of rearranging)
[quix0rs-gnu-social.git] / plugins / SubMirror / lib / mirrorqueuehandler.php
index 92b36b5ebfdcd60c4241cf465304bcc6702a189d..550986b444ce1a4be3646252c00a0f87d8836e9f 100644 (file)
@@ -23,7 +23,6 @@
  * @package SubMirror
  * @author Brion Vibber <brion@status.net>
  */
-
 class MirrorQueueHandler extends QueueHandler
 {
     function transport()
@@ -37,7 +36,13 @@ class MirrorQueueHandler extends QueueHandler
         $mirror->subscribed = $notice->profile_id;
         if ($mirror->find()) {
             while ($mirror->fetch()) {
-                $mirror->mirrorNotice($notice);
+                try {
+                    $mirror->mirrorNotice($notice);
+                } catch (Exception $e) {
+                    common_log(LOG_ERR, "Exception trying to mirror notice $notice->id " .
+                                        "for subscriber $mirror->subscriber ($mirror->style): " .
+                                        $e->getMessage());
+                }
             }
         }
         return true;