aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDM42.Net (Matt Dent) <dentm42@dm42.net>2019-02-23 21:03:05 -0500
committerDM42.Net (Matt Dent) <dentm42@dm42.net>2019-02-23 21:03:05 -0500
commit7a1a44f80293648e5f4c0acda8f74e67c83f42d7 (patch)
tree65c0acff1fcd71ab60f0414520fffacbdf787e4c /include
parent6f8593cf478bf63b53c02332d000d406942bce45 (diff)
downloadvolse-hubzilla-7a1a44f80293648e5f4c0acda8f74e67c83f42d7.tar.gz
volse-hubzilla-7a1a44f80293648e5f4c0acda8f74e67c83f42d7.tar.bz2
volse-hubzilla-7a1a44f80293648e5f4c0acda8f74e67c83f42d7.zip
xchan_query and fetch_post_tags uses full query results not a single row
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 8965218fd..bb89e54a4 100755
--- a/include/items.php
+++ b/include/items.php
@@ -4682,12 +4682,12 @@ function send_profile_photo_activity($channel,$photo,$profile) {
function sync_an_item($channel_id,$item_id) {
- $r = q("select * from item where id = %d limit 1",
+ $r = q("select * from item where id = %d",
intval($item_id)
);
if($r) {
- xchan_query($r[0]);
- $sync_item = fetch_post_tags($r[0]);
+ xchan_query($r);
+ $sync_item = fetch_post_tags($r);
build_sync_packet($r[0]['uid'],array('item' => array(encode_item($sync_item[0],true))));
}
}