allow admin to prevent private image embedding on hub

This commit is contained in:
Zach Prezkuta 2013-03-03 09:44:41 -07:00
parent ee263aec55
commit 0187283709
11 changed files with 54 additions and 10 deletions

View file

@ -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;