diff options
author | Max Kostikov <max@kostikov.co> | 2021-01-24 21:03:34 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-24 21:03:34 +0100 |
commit | 552796286e4a2a61cc6020b7aa785dc88553e2d0 (patch) | |
tree | 943eee4b69d59d85062c3ac26319f622e013b751 /Zotlabs/Module/Photo.php | |
parent | 6b0c61ac6bf45993f5d89b976c4d11c7e287aa38 (diff) | |
download | volse-hubzilla-552796286e4a2a61cc6020b7aa785dc88553e2d0.tar.gz volse-hubzilla-552796286e4a2a61cc6020b7aa785dc88553e2d0.tar.bz2 volse-hubzilla-552796286e4a2a61cc6020b7aa785dc88553e2d0.zip |
Add support filesystem storage for xchan profile photos
Diffstat (limited to 'Zotlabs/Module/Photo.php')
-rw-r--r-- | Zotlabs/Module/Photo.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 041bdf5a2..ee360dac5 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -194,9 +194,9 @@ class Photo extends \Zotlabs\Web\Controller { $mimetype = $e[0]['mimetype']; $modified = strtotime($e[0]['edited'] . 'Z'); - if(intval($e[0]['os_storage'])) { + if(intval($e[0]['os_storage'])) $streaming = $data; - } + if($e[0]['allow_cid'] != '' || $e[0]['allow_gid'] != '' || $e[0]['deny_gid'] != '' || $e[0]['deny_gid'] != '') $prvcachecontrol = 'no-store, no-cache, must-revalidate'; } @@ -282,7 +282,7 @@ class Photo extends \Zotlabs\Web\Controller { header("Content-Length: " . (isset($filesize) ? $filesize : strlen($data))); // If it's a file resource, stream it. - if($streaming && $channel) { + if($streaming) { if(strpos($streaming,'store') !== false) $istream = fopen($streaming,'rb'); else |