aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Entry.php8
-rw-r--r--app/Models/EntryDAO.php8
2 files changed, 12 insertions, 4 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'])) {
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index 6f60fb13f..d456b7711 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -1368,7 +1368,7 @@ SQL;
}
/**
- * @param 'a'|'A'|'i'|'s'|'S'|'c'|'f'|'t'|'T'|'ST'|'Z' $type
+ * @param 'a'|'A'|'c'|'f'|'i'|'s'|'S'|'ST'|'t'|'T'|'Z' $type
* @param int $id category/feed/tag ID
* @param numeric-string $id_min
* @param numeric-string $id_max
@@ -1462,7 +1462,7 @@ SQL;
}
/**
- * @param 'a'|'A'|'s'|'S'|'i'|'c'|'f'|'t'|'T'|'ST'|'Z' $type
+ * @param 'a'|'A'|'c'|'f'|'i'|'s'|'S'|'ST'|'t'|'T'|'Z' $type
* @param int $id category/feed/tag ID
* @param numeric-string $id_min
* @param numeric-string $id_max
@@ -1526,7 +1526,7 @@ SQL;
}
/**
- * @param 'a'|'A'|'s'|'S'|'i'|'c'|'f'|'t'|'T'|'ST'|'Z' $type
+ * @param 'a'|'A'|'c'|'f'|'i'|'s'|'S'|'ST'|'t'|'T'|'Z' $type
* @param int $id category/feed/tag ID
* @param numeric-string $id_min
* @param numeric-string $id_max
@@ -1595,7 +1595,7 @@ SQL;
}
/**
- * @param 'a'|'A'|'s'|'S'|'c'|'f'|'t'|'T'|'ST'|'Z' $type
+ * @param 'a'|'A'|'c'|'f'|'i'|'s'|'S'|'ST'|'t'|'T'|'Z' $type
* @param int $id category/feed/tag ID
* @param numeric-string $id_min
* @param numeric-string $id_max