Disable links to cached photos for non logged viewers

This commit is contained in:
Max Kostikov 2018-11-29 16:21:50 +01:00
parent 6aa99a903f
commit d8b5f383f5

View File

@ -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) {