From 6765fec7b12fc54c8077c886d4d170971587032c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 4 Jan 2019 15:23:23 +0000 Subject: [PATCH] LSR: Show preview pictures of videos (should be legally safe) --- leistungsschutzrecht/leistungsschutzrecht.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leistungsschutzrecht/leistungsschutzrecht.php b/leistungsschutzrecht/leistungsschutzrecht.php index 3c9090a1..b300fd65 100644 --- a/leistungsschutzrecht/leistungsschutzrecht.php +++ b/leistungsschutzrecht/leistungsschutzrecht.php @@ -29,7 +29,7 @@ function leistungsschutzrecht_getsiteinfo($a, &$siteinfo) { } // Avoid any third party pictures, to avoid copyright issues - if (($siteinfo['type'] != 'photo') && Config::get('leistungsschutzrecht', 'suppress_photos', false)) { + if (!in_array($siteinfo['type'], ['photo', 'video']) && Config::get('leistungsschutzrecht', 'suppress_photos', false)) { unset($siteinfo["image"]); unset($siteinfo["images"]); }