diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-30 11:38:47 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-30 11:38:47 +0100 |
commit | 53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf (patch) | |
tree | 7a2b4972fd1e212b5246ae450413c2ac1516b947 | |
parent | 0ee403eab3a29a98f85dc9fe304c25c6f037b24a (diff) | |
download | volse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.tar.gz volse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.tar.bz2 volse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.zip |
Check local_channel() before cache call
-rw-r--r-- | include/text.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/text.php b/include/text.php index 866b3fa2c..6e4402a9f 100644 --- a/include/text.php +++ b/include/text.php @@ -1111,13 +1111,15 @@ function linkify($s, $me = false) { function sslify($s) { // Local photo cache - $str = array( - 'body' => $s, - 'uid' => local_channel() - ); - call_hooks('cache_body_hook', $str); + if(local_channel()) { + $str = array( + 'body' => $s, + 'uid' => local_channel() + ); + call_hooks('cache_body_hook', $str); - $s = $str['body']; + $s = $str['body']; + } if (strpos(z_root(),'https:') === false) return $s; |