aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filestorage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-06 18:20:14 -0800
committerfriendica <info@friendica.com>2014-01-06 18:20:14 -0800
commite49e6c0d2a409b71937b126ebd3d0bbd6be6d676 (patch)
tree3052cd8ed6ae25af70db9841e2c691b55889450c /mod/filestorage.php
parent5a5466346cccecec257fc20a993bfa2426b8bf48 (diff)
downloadvolse-hubzilla-e49e6c0d2a409b71937b126ebd3d0bbd6be6d676.tar.gz
volse-hubzilla-e49e6c0d2a409b71937b126ebd3d0bbd6be6d676.tar.bz2
volse-hubzilla-e49e6c0d2a409b71937b126ebd3d0bbd6be6d676.zip
special handling for directories
Diffstat (limited to 'mod/filestorage.php')
-rw-r--r--mod/filestorage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/filestorage.php b/mod/filestorage.php
index 1063de256..4fa3c4182 100644
--- a/mod/filestorage.php
+++ b/mod/filestorage.php
@@ -138,8 +138,8 @@ function filestorage_content(&$a) {
'download' => $rr['hash'],
'title' => $rr['filename'],
'size' => $rr['filesize'],
- 'rev' => $rr['revision']
-
+ 'rev' => $rr['revision'],
+ 'dir' => (($rr['flags'] & ATTACH_FLAG_DIR) ? true : false)
);
}
}