Bläddra i källkod

Date minimum : cas des favoris et de l'historique complet

Suite de https://github.com/marienfressinaud/FreshRSS/issues/323
Alexandre Alapetite 12 år sedan
förälder
incheckning
74bceb2e2c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Models/EntryDAO.php

+ 1 - 1
app/Models/EntryDAO.php

@@ -303,7 +303,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
 			$where .= 'AND e.id ' . ($order === 'DESC' ? '<=' : '>=') . $firstId . ' ';
 		}
 		if ($date_min > 0) {
-			$where .= 'AND e.id >= ' . $date_min . '000000 ';
+			$where .= 'AND (e.id >= ' . $date_min . '000000 OR e.is_favorite = 1 OR f.keep_history = 1) ';
 		}
 		$terms = array_unique(explode(' ', trim($filter)));
 		sort($terms);	//Put #tags first