https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d6a56e
)
LSR: Show preview pictures of videos (should be legally safe)
author
Michael
<heluecht@pirati.ca>
Fri, 4 Jan 2019 15:23:23 +0000
(15:23 +0000)
committer
Michael
<heluecht@pirati.ca>
Fri, 4 Jan 2019 15:23:23 +0000
(15:23 +0000)
leistungsschutzrecht/leistungsschutzrecht.php
patch
|
blob
|
history
diff --git
a/leistungsschutzrecht/leistungsschutzrecht.php
b/leistungsschutzrecht/leistungsschutzrecht.php
index
3c9090a
..
b300fd6
100644
(file)
--- 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"]);
}