aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 66c05a830..190b435c8 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -642,6 +642,12 @@ HTML;
if ($ok && $filter->getNotFeedIds() !== null) {
$ok &= !in_array($this->feedId, $filter->getNotFeedIds(), true);
}
+ if ($ok && $filter->getCategoryIds() !== null) {
+ $ok &= in_array($this->feed()?->categoryId(), $filter->getCategoryIds(), true);
+ }
+ if ($ok && $filter->getNotCategoryIds() !== null) {
+ $ok &= !in_array($this->feed()?->categoryId(), $filter->getNotCategoryIds(), true);
+ }
if ($ok && $filter->getAuthor() !== null) {
foreach ($filter->getAuthor() as $author) {
$ok &= stripos(implode(';', $this->authors), $author) !== false;