Merge pull request #787 from annando/lsr-pictures

LSR: Show preview pictures of videos (should be legally safe)
This commit is contained in:
Hypolite Petovan 2019-01-04 11:27:00 -05:00 committed by GitHub
commit de5b67cceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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"]);
}