Add feed visibility filter to unread dates view (#8489)

* Add feed visibility filter to unread dates view

* Date field sanitize
This commit is contained in:
Alexandre Alapetite
2026-02-08 20:42:58 +01:00
committed by GitHub
parent 6b5304b825
commit f17ed2f7c8
5 changed files with 39 additions and 15 deletions

View File

@@ -257,7 +257,8 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
if (!in_array($granularity, ['day', 'month', 'year'], true)) {
$granularity = 'day';
}
$dates = $statsDAO->getMaxUnreadDates($field, $granularity, Minz_Request::paramInt('max') ?: 100);
$dates = $statsDAO->getMaxUnreadDates($field, $granularity, Minz_Request::paramInt('max') ?: 100,
Minz_Request::paramIntNull('min_priority') ?? FreshRSS_Feed::PRIORITY_HIDDEN);
$this->view->unreadDates = $dates;
}
}