From a74449687f44f07b3e25d734e40636f3ec3008ed Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Thu, 27 Jun 2024 12:40:26 +0200
Subject: [PATCH] disable yahoo-ads

---
 metager/app/Models/Configuration/Searchengines.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/metager/app/Models/Configuration/Searchengines.php b/metager/app/Models/Configuration/Searchengines.php
index 5f520ec91..add97063e 100644
--- a/metager/app/Models/Configuration/Searchengines.php
+++ b/metager/app/Models/Configuration/Searchengines.php
@@ -88,7 +88,9 @@ class Searchengines
         }
 
         // Enable Yahoo Ads if query is unauthorized and yahoo is disabled
-        if (!app(Authorization::class)->canDoAuthenticatedSearch() && $settings->fokus !== "bilder" && array_key_exists("yahoo", $this->sumas) && array_key_exists("yahoo-ads", $this->sumas)) {
+        // Do not enable yahoo-ads anymore. For now temporarily
+        // ToDo: Remove or enable again
+        if (1 == 0 && !app(Authorization::class)->canDoAuthenticatedSearch() && $settings->fokus !== "bilder" && array_key_exists("yahoo", $this->sumas) && array_key_exists("yahoo-ads", $this->sumas)) {
             if ($this->sumas["yahoo"]->configuration->disabled === true) {
                 $this->sumas["yahoo-ads"]->configuration->disabled = false;
             }
-- 
GitLab