From e49e6c0d2a409b71937b126ebd3d0bbd6be6d676 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 6 Jan 2014 18:20:14 -0800 Subject: special handling for directories --- mod/filestorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/filestorage.php') 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) ); } } -- cgit v1.2.3