diff options
author | Andrew Dolgov <[email protected]> | 2021-03-02 21:19:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-02 21:19:26 +0300 |
commit | 8e63baf445ff0a683383001e607e979edf4ec52a (patch) | |
tree | dbc6b722642767aff8452a5e201781dd2b29fa73 | |
parent | 52c5117ae1f1120d1e5b5ec4d1242dfaa1535098 (diff) |
only skip other posts if they return 404
-rwxr-xr-x | init.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |