diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index ea124794a..d4f5016f0 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -1212,6 +1212,14 @@ HTML; } elseif ($mode === 'freshrss') { $item['origin']['feedUrl'] = htmlspecialchars_decode($feed->url()); } + if ($feed->priority() >= FreshRSS_Feed::PRIORITY_MAIN_STREAM) { + $item['categories'][] = 'user/-/state/org.freshrss/main'; + if ($feed->priority() >= FreshRSS_Feed::PRIORITY_IMPORTANT) { + $item['categories'][] = 'user/-/state/org.freshrss/important'; + } + } elseif ($feed->priority() <= FreshRSS_Feed::PRIORITY_HIDDEN) { + $item['categories'][] = 'user/-/state/org.freshrss/hidden'; + } } foreach ($this->enclosures() as $enclosure) { if (!empty($enclosure['url'])) { |
