aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-14 15:59:11 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-14 15:59:11 -0700
commit23f7f60bf7b15ca5332803ca1e24280489042b7a (patch)
tree799fe952a0cf83df0d3f08b1eb5b145145b4c79d /mod/photo.php
parentb7be79c5e7bfe25c3c55784733b6f616f18d85dc (diff)
downloadvolse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.tar.gz
volse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.tar.bz2
volse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.zip
make new os_storage flag work
Diffstat (limited to 'mod/photo.php')
-rw-r--r--mod/photo.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/photo.php b/mod/photo.php
index 66280cb76..f757372bf 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -69,6 +69,8 @@ function photo_init(&$a) {
$data = dbunescbin($r[0]['data']);
$mimetype = $r[0]['type'];
}
+ if(intval($r[0]['os_storage']))
+ $data = file_get_contents($data);
if(! isset($data)) {
$data = file_get_contents($default);
$mimetype = 'image/png';
@@ -142,6 +144,8 @@ function photo_init(&$a) {
if($r && $allowed) {
$data = dbunescbin($r[0]['data']);
$mimetype = $r[0]['type'];
+ if(intval($r[0]['os_storage']))
+ $data = file_get_contents($data);
}
else {