diff options
| author | 2025-11-04 12:49:21 +0100 | |
|---|---|---|
| committer | 2025-11-04 12:49:21 +0100 | |
| commit | b6c63d223931382aae84dc6d394cdd1bb58121bc (patch) | |
| tree | f512ea0f11873f89740cb7692442d11b26d59ee3 /app/Models/Entry.php | |
| parent | 7d4854a0a4f5665db599f18c34035786465639f3 (diff) | |
Better transitions between groups of articles (#8174)
fix https://github.com/FreshRSS/FreshRSS/issues/7520
fix https://github.com/FreshRSS/FreshRSS/issues/8168
fix https://github.com/FreshRSS/FreshRSS/discussions/8172
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 62d4019d8..3cf6382dd 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -873,23 +873,6 @@ HTML; $feed->applyFilterActions($this); } - public function isDay(int $day, int $today): bool { - $date = $this->dateAdded(true); - switch ($day) { - case FreshRSS_Days::TODAY: - $tomorrow = $today + 86400; - return $date >= $today && $date < $tomorrow; - case FreshRSS_Days::YESTERDAY: - $yesterday = $today - 86400; - return $date >= $yesterday && $date < $today; - case FreshRSS_Days::BEFORE_YESTERDAY: - $yesterday = $today - 86400; - return $date < $yesterday; - default: - return false; - } - } - /** * @param string $url Overridden URL. Will default to the entry URL. * @throws Minz_Exception |
