From 648eddaf130d53a4908f573ccb08c4a1dd0518e9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 20 May 2025 07:07:00 +0200 Subject: Fix important articles on reader view (#7602) fix https://github.com/FreshRSS/FreshRSS/issues/7601 --- app/views/index/reader.phtml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index adcb78908..bb957f232 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -9,6 +9,7 @@ if (!Minz_Request::paramBoolean('ajax')) { call_user_func($this->callbackBeforeEntries, $this); $lazyload = FreshRSS_Context::userConf()->lazyload; +$useKeepUnreadImportant = !FreshRSS_Context::isImportant() && !FreshRSS_Context::isFeed(); ?>

@@ -29,9 +30,15 @@ $lazyload = FreshRSS_Context::userConf()->lazyload; $nbEntries++; //We most likely already have the feed object in cache, otherwise make a request - $this->feed = FreshRSS_Category::findFeed($this->categories, $entry->feedId()) ?? $entry->feed() ?? FreshRSS_Feed::default(); - ?>
- renderHelper('index/article'); ?> + $this->feed = FreshRSS_Category::findFeed($this->categories, $this->entry->feedId()) ?? $this->entry->feed() ?? FreshRSS_Feed::default(); + ?>
renderHelper('index/article'); ?>