aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-01-25 03:50:47 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-01-25 03:50:47 +0100
commit6b3ea9dc141e668e4f88e20e864daf845b349995 (patch)
tree3d91c1678f2ef5b6811858d99c3b6cc8f9b689e4 /include/items.php
parentd341358afbf19622575fa36a632f9d40b39ae202 (diff)
downloadvolse-hubzilla-6b3ea9dc141e668e4f88e20e864daf845b349995.tar.gz
volse-hubzilla-6b3ea9dc141e668e4f88e20e864daf845b349995.tar.bz2
volse-hubzilla-6b3ea9dc141e668e4f88e20e864daf845b349995.zip
API My wall posts
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 6e4f9f0d6..3b2fd2eec 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3712,7 +3712,9 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
$def_acl = '';
$item_uids = ' true ';
-
+
+ if ($arr['uid']) $uid= $arr['uid'];
+
if($channel) {
$uid = $channel['channel_id'];
$uidhash = $channel['channel_hash'];
@@ -3724,7 +3726,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
if($arr['wall'])
$sql_options .= " and (item_flags & " . intval(ITEM_WALL) . ") ";
-
+
$sql_extra = " AND item.parent IN ( SELECT parent FROM item WHERE (item_flags & " . intval(ITEM_THREAD_TOP) . ") $sql_options ) ";
if($arr['since_id'])
@@ -3893,7 +3895,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
ORDER BY item.$ordering DESC $pager_sql ",
intval(ABOOK_FLAG_BLOCKED)
);
-
+
}
else {
// update