diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-29 16:21:50 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-29 16:21:50 +0100 |
commit | d8b5f383f52274e30e02a8cf8ce77aac0a6bd910 (patch) | |
tree | 8585d8968b94c96b8bd14dc07de749e37286f3c2 /include/text.php | |
parent | 6aa99a903fd221d306c62a807cf3c1a4564f0b4d (diff) | |
download | volse-hubzilla-d8b5f383f52274e30e02a8cf8ce77aac0a6bd910.tar.gz volse-hubzilla-d8b5f383f52274e30e02a8cf8ce77aac0a6bd910.tar.bz2 volse-hubzilla-d8b5f383f52274e30e02a8cf8ce77aac0a6bd910.zip |
Disable links to cached photos for non logged viewers
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 5574b9054..00e12dc06 100644 --- a/include/text.php +++ b/include/text.php @@ -1111,7 +1111,7 @@ function linkify($s, $me = false) { function sslify($s, $uid) { // Local photo cache - if(get_config('system','photo_cache_enable', 0)) { + if(get_config('system','photo_cache_enable', 0) && local_channel()) { $matches = null; $cnt = preg_match_all("/\<img(.*?)src=[\"|'](https?\:.*?)[\"|'](.*?)\>/",$s,$matches,PREG_SET_ORDER); if ($cnt) { |