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