aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-01-09 20:51:33 +0100
committerGravatar GitHub <noreply@github.com> 2021-01-09 20:51:33 +0100
commitee7938ed5f26ac48c46269eb16f8e5067605ab27 (patch)
treed47851092bd757915953ca83c8c308b574dfdea5 /app/Models/Entry.php
parentf5fdbb9e8211500ce8ffc959808b7891646f9f3c (diff)
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
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php2
1 files changed, 2 insertions, 0 deletions
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() {