From 0d365300d7b60472377a0b84adcb228b525eadfe Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 10 Sep 2026 16:02:52 +0200 Subject: [PATCH] Minor fixes after FreshRSS release 1.30.0 --- .typos.toml | 1 + xExtension-LlmClassification/extension.php | 2 ++ xExtension-Webhook/extension.php | 1 + 3 files changed, 4 insertions(+) diff --git a/.typos.toml b/.typos.toml index eeeee4fe..c37248f5 100644 --- a/.typos.toml +++ b/.typos.toml @@ -5,6 +5,7 @@ Ths2 = "Ths2" [default.extend-words] referer = "referer" +sur = "sur" [files] extend-exclude = [ diff --git a/xExtension-LlmClassification/extension.php b/xExtension-LlmClassification/extension.php index 2e4a5692..71e2bc3e 100644 --- a/xExtension-LlmClassification/extension.php +++ b/xExtension-LlmClassification/extension.php @@ -151,6 +151,7 @@ private function buildUserPrompt(FreshRSS_Entry $entry): string { /** * Check whether the entry matches the configured search filter. * Returns true if no filter is configured or the entry matches at least one filter line. + * @throws Minz_BadRequestException */ private function entryMatchesSearchFilter(FreshRSS_Entry $entry): bool { $filterStr = $this->getUserConfigurationString('search_filter') ?? ''; @@ -411,6 +412,7 @@ private function loadExistingEntry(FreshRSS_Entry $incomingEntry): ?FreshRSS_Ent /** * Hook for EntryBeforeInsert: classify a new entry. + * @throws Minz_BadRequestException * @throws Minz_PermissionDeniedException */ public function classifyEntry(FreshRSS_Entry $entry): FreshRSS_Entry { diff --git a/xExtension-Webhook/extension.php b/xExtension-Webhook/extension.php index 5a8f6882..d9951cd2 100644 --- a/xExtension-Webhook/extension.php +++ b/xExtension-Webhook/extension.php @@ -142,6 +142,7 @@ public function processArticle(FreshRSS_Entry $entry): FreshRSS_Entry { * * @param FreshRSS_Entry $entry The RSS entry to check * @return bool True if the entry matches any filter line, or if no filter is configured + * @throws Minz_BadRequestException */ private function entryMatchesSearchFilter(FreshRSS_Entry $entry): bool { $searchFilter = $this->getUserConfigurationString('search_filter') ?? '';