LSR: Show preview pictures of videos (should be legally safe) #787

Merged
annando merged 1 commit from lsr-pictures into 2019.01-rc 2019-01-04 17:27:01 +01:00
Showing only changes of commit 6765fec7b1 - Show all commits

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