aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-12-02 10:07:12 +0100
committerMax Kostikov <max@kostikov.co>2018-12-02 10:07:12 +0100
commit2a57e00cb4a7dada0993e91e0e2176ad335cf12f (patch)
treec98eefbf08c8a14060d3141d7ac4aca123beed81 /include
parent53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf (diff)
downloadvolse-hubzilla-2a57e00cb4a7dada0993e91e0e2176ad335cf12f.tar.gz
volse-hubzilla-2a57e00cb4a7dada0993e91e0e2176ad335cf12f.tar.bz2
volse-hubzilla-2a57e00cb4a7dada0993e91e0e2176ad335cf12f.zip
Remove local_channel() check on cache_body_hook call
Diffstat (limited to 'include')
-rw-r--r--include/text.php16
1 files 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;