mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
allow admin to prevent private image embedding on hub
This commit is contained in:
parent
ee263aec55
commit
0187283709
11 changed files with 54 additions and 10 deletions
|
@ -3644,9 +3644,13 @@ function atom_entry($item,$type,$author,$owner,$comment = false,$cid = 0) {
|
|||
}
|
||||
|
||||
function fix_private_photos($s, $uid, $item = null, $cid = 0) {
|
||||
|
||||
if(get_config('system','disable_embedded'))
|
||||
return $s;
|
||||
|
||||
$a = get_app();
|
||||
|
||||
logger('fix_private_photos', LOGGER_DEBUG);
|
||||
logger('fix_private_photos: check for photos', LOGGER_DEBUG);
|
||||
$site = substr($a->get_baseurl(),strpos($a->get_baseurl(),'://'));
|
||||
|
||||
$orig_body = $s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue