]> git.mxchange.org Git - friendica-addons.git/commitdiff
LSR: Show preview pictures of videos (should be legally safe)
authorMichael <heluecht@pirati.ca>
Fri, 4 Jan 2019 15:23:23 +0000 (15:23 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 4 Jan 2019 15:23:23 +0000 (15:23 +0000)
leistungsschutzrecht/leistungsschutzrecht.php

index 3c9090a1be41862c56740bbc48ac0b7999f2559a..b300fd655511011fa6147c6455bf0b4911400212 100644 (file)
@@ -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"]);
        }