A free, self-hostable news aggregator…
Fix regression labels (#7150)
Alexandre Alapetitebbd81b3e7e95
diff --git a/app/Models/Context.php b/app/Models/Context.phpindex 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();