Check local_channel() before cache call
This commit is contained in:
parent
0ee403eab3
commit
53d9cbc69c
@ -1111,6 +1111,7 @@ function linkify($s, $me = false) {
|
||||
function sslify($s) {
|
||||
|
||||
// Local photo cache
|
||||
if(local_channel()) {
|
||||
$str = array(
|
||||
'body' => $s,
|
||||
'uid' => local_channel()
|
||||
@ -1118,6 +1119,7 @@ function sslify($s) {
|
||||
call_hooks('cache_body_hook', $str);
|
||||
|
||||
$s = $str['body'];
|
||||
}
|
||||
|
||||
if (strpos(z_root(),'https:') === false)
|
||||
return $s;
|
||||
|
Reference in New Issue
Block a user