aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-27 13:02:10 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-27 13:02:10 +0100
commitbbd81b3e7e95891601ca341114f6cd9f5ea2840c (patch)
tree5483d4d2a09618704b83c09c3f5772ed4536e350 /app
parentb1d24fbdb7d1cc948c946295035dad6df550fb7e (diff)
Fix regression labels (#7150)
Regression from https://github.com/FreshRSS/FreshRSS/pull/7131
Diffstat (limited to 'app')
-rw-r--r--app/Models/Context.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index b9cc77498..c467ed04f 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -471,7 +471,11 @@ final class FreshRSS_Context {
}
}
if ($tag === null) {
- throw new FreshRSS_Context_Exception('Invalid tag: ' . $id);
+ $tagDAO = FreshRSS_Factory::createTagDao();
+ $tag = $tagDAO->searchById($id);
+ if ($tag === null) {
+ throw new FreshRSS_Context_Exception('Invalid tag: ' . $id);
+ }
}
self::$name = $tag->name();
self::$get_unread = $tag->nbUnread();