Remove local_channel() check on cache_body_hook call

This commit is contained in:
Max Kostikov 2018-12-02 10:07:12 +01:00
parent 53d9cbc69c
commit 2a57e00cb4

View File

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