summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-02 21:19:26 +0300
committerAndrew Dolgov <[email protected]>2021-03-02 21:19:26 +0300
commit8e63baf445ff0a683383001e607e979edf4ec52a (patch)
treedbc6b722642767aff8452a5e201781dd2b29fa73
parent52c5117ae1f1120d1e5b5ec4d1242dfaa1535098 (diff)
only skip other posts if they return 404
-rwxr-xr-xinit.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/init.php b/init.php
index 8c35f0a..7fedc48 100755
--- a/init.php
+++ b/init.php
@@ -118,9 +118,7 @@ class Reddit_Delay extends Plugin {
$data = UrlHelper::fetch(["url" => $entry->item]);
- if (!$data) {
- $skip_post = "[link:no-data]";
- } else if (UrlHelper::$fetch_last_error_code == 404) {
+ if (UrlHelper::$fetch_last_error_code == 404) {
$skip_post = "[link:404]";
$delete_post = true;
}