From bbd81b3e7e95891601ca341114f6cd9f5ea2840c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 27 Dec 2024 13:02:10 +0100 Subject: Fix regression labels (#7150) Regression from https://github.com/FreshRSS/FreshRSS/pull/7131 --- app/Models/Context.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app') 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(); -- cgit v1.2.3