diff options
| author | 2025-09-30 10:05:17 +0200 | |
|---|---|---|
| committer | 2025-09-30 10:05:17 +0200 | |
| commit | 34532c0dd49f825ca4f265db9dec446ec0ecd34f (patch) | |
| tree | 365e6776b93c3e2d91b814e8db6fe0d4fcbdcf22 /app/views | |
| parent | 11e6e0394c9e617a56ac29afc7a341f19ac6662d (diff) | |
Add new visibility priority *Show in its feed* (#7972)
* Add new visibility priority *Show in its feed*
fix https://github.com/FreshRSS/FreshRSS/pull/7970#issuecomment-3293917428 (you can't directly filter a hidden feed, it just shows a 404 page)
And add a new visibility *Show in its feed* to show the feed in the list but not its articles.
Ensure that visibility *hidden* is not shown to API.
* TODO for later
* Update app/i18n/pl/sub.php
Co-authored-by: Inverle <inverle@proton.me>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 2 | ||||
| -rw-r--r-- | app/views/index/global.phtml | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index f6419e301..0666a7130 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -121,6 +121,8 @@ FreshRSS_Feed::PRIORITY_MAIN_STREAM === $this->feed->priority() ? 'selected="selected"' : '' ?>><?= _t('sub.feed.priority.main_stream') ?></option> <option value="<?= FreshRSS_Feed::PRIORITY_CATEGORY ?>" <?= FreshRSS_Feed::PRIORITY_CATEGORY === $this->feed->priority() ? 'selected="selected"' : '' ?>><?= _t('sub.feed.priority.category') ?></option> + <option value="<?= FreshRSS_Feed::PRIORITY_FEED ?>" <?= + FreshRSS_Feed::PRIORITY_FEED === $this->feed->priority() ? 'selected="selected"' : '' ?>><?= _t('sub.feed.priority.feed') ?></option> <option value="<?= FreshRSS_Feed::PRIORITY_HIDDEN ?>" <?= FreshRSS_Feed::PRIORITY_HIDDEN === $this->feed->priority() ? 'selected="selected"' : '' ?>><?= _t('sub.feed.priority.hidden') ?></option> </select> diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index a5af83412..1ad92d2fc 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -64,6 +64,9 @@ <ul class="box-content scrollbar-thin"> <?php foreach ($feeds as $feed) { + if ($feed->priority() < FreshRSS_Feed::PRIORITY_FEED) { + continue; + } $nb_not_read = $feed->nbNotRead(); $error_class = ''; |
