From f25eb61fbcd2119513d46fa4657fcdc955313507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phil=20H=C3=B6fer?= <phil.hoefer@suma-ev.de> Date: Mon, 24 Jun 2024 09:29:48 +0000 Subject: [PATCH] Implement Conditional URL Block --- metager/app/Models/Result.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metager/app/Models/Result.php b/metager/app/Models/Result.php index 48700a070..554623d5a 100644 --- a/metager/app/Models/Result.php +++ b/metager/app/Models/Result.php @@ -294,7 +294,10 @@ class Result { if ( ($this->strippedHost !== "" && (in_array($this->strippedHost, $metager->getDomainBlacklist()) || - in_array($this->strippedLink, $metager->getUrlBlacklist()))) + in_array($this->strippedLink, $metager->getUrlBlacklist()) || + in_array($this->strippedLink . "|" . app(SearchSettings::class)->q, $metager->getUrlBlacklist()) + ) + ) ) { return true; } else { -- GitLab