From: Michael Date: Fri, 4 Jan 2019 15:23:23 +0000 (+0000) Subject: LSR: Show preview pictures of videos (should be legally safe) X-Git-Tag: 2019.01~5^2 X-Git-Url: https://reisub.nsupdate.info/git/?a=commitdiff_plain;h=6765fec7b12fc54c8077c886d4d170971587032c;p=friendica-addons.git%2F.git LSR: Show preview pictures of videos (should be legally safe) --- 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"]); }