diff options
author | DM42.Net (Matt Dent) <dentm42@dm42.net> | 2019-02-23 10:24:05 -0500 |
---|---|---|
committer | DM42.Net (Matt Dent) <dentm42@dm42.net> | 2019-02-23 10:24:05 -0500 |
commit | 6f8593cf478bf63b53c02332d000d406942bce45 (patch) | |
tree | 0d083c112b5f9c6ae09ac7a509373cf52cc4ad67 /include | |
parent | 3b2efb1000485057546925882df370187455b588 (diff) | |
download | volse-hubzilla-6f8593cf478bf63b53c02332d000d406942bce45.tar.gz volse-hubzilla-6f8593cf478bf63b53c02332d000d406942bce45.tar.bz2 volse-hubzilla-6f8593cf478bf63b53c02332d000d406942bce45.zip |
Fixes - sync item based on item's user
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php index 6e6727084..8965218fd 100755 --- a/include/items.php +++ b/include/items.php @@ -4682,13 +4682,13 @@ function send_profile_photo_activity($channel,$photo,$profile) { function sync_an_item($channel_id,$item_id) { - $r = q("select * from item where id = %d", + $r = q("select * from item where id = %d limit 1", intval($item_id) ); if($r) { - xchan_query($r); - $sync_item = fetch_post_tags($r); - build_sync_packet($channel_id,array('item' => array(encode_item($sync_item[0],true)))); + xchan_query($r[0]); + $sync_item = fetch_post_tags($r[0]); + build_sync_packet($r[0]['uid'],array('item' => array(encode_item($sync_item[0],true)))); } } |