From ee7938ed5f26ac48c46269eb16f8e5067605ab27 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 9 Jan 2021 20:51:33 +0100 Subject: Do not import feed causing DB error (#3347) * Do not import feed causing DB error The DB error might be that the new feed tries to redirect to an already existing feed, in which case #fix https://github.com/FreshRSS/FreshRSS/issues/3339 * Add feed bug --- app/Models/Entry.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 96e1cf3a6..2f43c19cd 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -442,6 +442,7 @@ class FreshRSS_Entry extends Minz_Model { ); if ($fullContent != '') { $this->content = $fullContent; + return true; } } catch (Exception $e) { // rien à faire, on garde l'ancien contenu(requête a échoué) @@ -449,6 +450,7 @@ class FreshRSS_Entry extends Minz_Model { } } } + return false; } public function toArray() { -- cgit v1.2.3