aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-05 16:54:09 -0800
committerfriendica <info@friendica.com>2013-02-05 16:54:09 -0800
commitf3eb2eb9e7f5da80dae8518a70e05514a203d0f1 (patch)
tree90a1d8d6bdb8a4b2156a0502370373e2960673cf /include/photos.php
parent05ba851d52019decf84ea0325f4138f354355d37 (diff)
downloadvolse-hubzilla-f3eb2eb9e7f5da80dae8518a70e05514a203d0f1.tar.gz
volse-hubzilla-f3eb2eb9e7f5da80dae8518a70e05514a203d0f1.tar.bz2
volse-hubzilla-f3eb2eb9e7f5da80dae8518a70e05514a203d0f1.zip
convert wall_upload to use the photo api
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php4
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);