]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/scripts/renew-feeds.php
Test URLs against blacklist also on PuSH subscriptions.
[quix0rs-gnu-social.git] / plugins / OStatus / scripts / renew-feeds.php
index 8f8ac3ee1d968416dacd8557e6e5fba7360181a4..d63f448827f4f0b37bd8e273683a1d695ab4f135 100755 (executable)
@@ -37,7 +37,11 @@ try {
 
 while ($sub->fetch()) {
     echo "Renewing feed subscription\n\tExp.: {$sub->sub_end}\n\tFeed: {$sub->uri}\n\tHub:  {$sub->huburi}\n";
-    $sub->renew();
+    try {
+        $sub->renew();
+    } catch (Exception $e) {
+        echo "FAILED: {$e->getMessage()}\n";
+    }
 }
 
 echo "Done!";