aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Photo.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-16 23:14:10 +0100
committerMax Kostikov <max@kostikov.co>2018-11-16 23:14:10 +0100
commit6010b5c6198bf49c39029a657443b5bf1be8b408 (patch)
tree04ac95d421c98405df0728d1a08645a7c545d814 /Zotlabs/Module/Photo.php
parent4812c5486db3f49cd1df34f8678c51369ac76d7a (diff)
downloadvolse-hubzilla-6010b5c6198bf49c39029a657443b5bf1be8b408.tar.gz
volse-hubzilla-6010b5c6198bf49c39029a657443b5bf1be8b408.tar.bz2
volse-hubzilla-6010b5c6198bf49c39029a657443b5bf1be8b408.zip
Fix return on wrong sotred in Content-Length size for full size photos
Diffstat (limited to 'Zotlabs/Module/Photo.php')
-rw-r--r--Zotlabs/Module/Photo.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index 30e8340e2..91175c7df 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -163,11 +163,13 @@ class Photo extends \Zotlabs\Web\Controller {
if($exists && $allowed) {
$data = dbunescbin($e[0]['content']);
- $filesize = $e[0]['filesize'];
$mimetype = $e[0]['mimetype'];
$modified = strtotime($e[0]['edited'] . 'Z');
- if(intval($e[0]['os_storage']))
+ if(intval($e[0]['os_storage'])) {
$streaming = $data;
+ }
+ else
+ $filesize = $e[0]['filesize'];
if($e[0]['allow_cid'] != '' || $e[0]['allow_gid'] != '' || $e[0]['deny_gid'] != '' || $e[0]['deny_gid'] != '')
$prvcachecontrol = true;
}