From 2a57e00cb4a7dada0993e91e0e2176ad335cf12f Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 2 Dec 2018 10:07:12 +0100 Subject: [PATCH] Remove local_channel() check on cache_body_hook call --- include/text.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/include/text.php b/include/text.php index 6e4402a9f..7f6e87d3b 100644 --- a/include/text.php +++ b/include/text.php @@ -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;