diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-06 13:41:41 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-06 13:41:41 +0100 |
commit | 1828b6daab88041dbc85f11cc4e04efede6c993b (patch) | |
tree | 2d09bd7b82d7d1ae05c1153dffc8b0414ac3c98a /Zotlabs | |
parent | c26f45b7c20c870fcc77258a0c282440ec3e0b5a (diff) | |
download | volse-hubzilla-1828b6daab88041dbc85f11cc4e04efede6c993b.tar.gz volse-hubzilla-1828b6daab88041dbc85f11cc4e04efede6c993b.tar.bz2 volse-hubzilla-1828b6daab88041dbc85f11cc4e04efede6c993b.zip |
Update Photo.php
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Photo.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 8f85bdd69..07443bb83 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -83,9 +83,8 @@ class Photo extends \Zotlabs\Web\Controller { $data = dbunescbin($r[0]['content']); $mimetype = $r[0]['mimetype']; } - if(intval($r[0]['os_storage'])) { + if(intval($r[0]['os_storage'])) $data = file_get_contents($data); - } } if(! $data) { $data = fetch_image_from_url($default,$mimetype); @@ -168,9 +167,8 @@ class Photo extends \Zotlabs\Web\Controller { $data = dbunescbin($e[0]['content']); $mimetype = $e[0]['mimetype']; $modified = strtotime($e[0]['edited']); - if(intval($e[0]['os_storage'])) { + if(intval($e[0]['os_storage'])) $streaming = $data; - } } else { if(! $allowed) { |