aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 2a85556df..dbd493724 100755
--- a/include/items.php
+++ b/include/items.php
@@ -135,7 +135,11 @@ function post_activity_item($arr) {
call_hooks('post_local_end', $arr);
proc_run('php','include/notifier.php','activity',$post_id);
$ret['success'] = true;
- $ret['activity'] = $ret;
+ $r = q("select * from item where id = %d limit 1",
+ intval($post_id)
+ );
+ if($r)
+ $ret['activity'] = $r[0];
}
return $ret;