diff options
| author | 2021-03-26 19:13:23 +0100 | |
|---|---|---|
| committer | 2021-03-26 19:13:23 +0100 | |
| commit | eeff1a17b0ae13c32560e9d1b59c6e82965f3e6d (patch) | |
| tree | 8224f828f2d9ea094f2a8f608c0eb1eef07793b1 /app/Models/Feed.php | |
| parent | 49f920e19dff22e8026707d98cf93b556a2703a9 (diff) | |
Suport standard HTTP 410 Gone (#3561)
When a feed returns an HTTP 410 Gone, mute the corresponding feed, i.e. stop refreshing it.
Example of such feed, Les Décodeurs (Libération) https://rss.liberation.fr/rss/100893/
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index af9c54719..51d63ef42 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -287,7 +287,8 @@ class FreshRSS_Feed extends Minz_Model { if ((!$mtime) || $simplePie->error()) { $errorMessage = $simplePie->error(); throw new FreshRSS_Feed_Exception( - ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $this->url . ']' + ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $this->url . ']', + $simplePie->status_code() ); } |
