mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-19 05:44:39 -04:00
Fix bug add favorite entry
See https://github.com/marienfressinaud/FreshRSS/issues/494
This commit is contained in:
@@ -284,7 +284,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
|
||||
$url = $origin[$key];
|
||||
$name = $origin['title'];
|
||||
$website = $origin['htmlUrl'];
|
||||
$error = false;
|
||||
|
||||
try {
|
||||
// Create a Feed object and add it in DB
|
||||
$feed = new FreshRSS_Feed($url);
|
||||
|
||||
@@ -65,7 +65,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
|
||||
}
|
||||
|
||||
if (!isset($existingGuids[$entry->guid()]) &&
|
||||
($feedHistory != 0 || $eDate >= $date_min)) {
|
||||
($feedHistory != 0 || $eDate >= $date_min || $entry->isFavorite())) {
|
||||
$values = $entry->toArray();
|
||||
|
||||
$useDeclaredDate = empty($existingGuids);
|
||||
|
||||
Reference in New Issue
Block a user