diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/photos.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php index c6e54517a..d4ddb8909 100644 --- a/include/photos.php +++ b/include/photos.php @@ -1,6 +1,7 @@ <?php require_once('include/permissions.php'); +require_once('include/items.php'); function photo_upload($channel, $observer, $args) { @@ -184,7 +185,7 @@ function photo_upload($channel, $observer, $args) { // Create item container $item_flags = ITEM_WALL|ITEM_ORIGIN|ITEM_THREAD_TOP; - $item_restrict = (($visibility) ? ITEM_HIDDEN : ITEM_VISIBLE); + $item_restrict = (($visible) ? ITEM_VISIBLE : ITEM_HIDDEN); $title = ''; $uri = item_message_id(); @@ -217,6 +218,7 @@ function photo_upload($channel, $observer, $args) { proc_run('php', "include/notifier.php", 'wall-new', $item_id); $ret['success'] = true; + $ret['body'] = $arr['body']; $ret['photoitem_id'] = $item_id; call_hooks('photo_post_end',$ret); |