Check local_channel() before cache call

This commit is contained in:
Max Kostikov 2018-11-30 11:38:47 +01:00
parent 0ee403eab3
commit 53d9cbc69c

View File

@ -1111,13 +1111,15 @@ function linkify($s, $me = false) {
function sslify($s) {
// Local photo cache
$str = array(
'body' => $s,
'uid' => local_channel()
);
call_hooks('cache_body_hook', $str);
if(local_channel()) {
$str = array(
'body' => $s,
'uid' => local_channel()
);
call_hooks('cache_body_hook', $str);
$s = $str['body'];
$s = $str['body'];
}
if (strpos(z_root(),'https:') === false)
return $s;