From c398d556b3acf0b5b598b4648a7db70ee1d5317b Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 14 Jul 2014 21:49:48 -0700 Subject: index collection sync info by hash rather than id --- include/zot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 1b02f8d69..1565a11e3 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2138,7 +2138,7 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) { ); if($r) $info['collections'] = $r; - $r = q("select * from group_member where uid = %d", + $r = q("select groups.hash as collection, group_member.xchan as member from groups left join group_member on groups.id = group_member.gid where group_member.uid = %d", intval($uid) ); if($r) -- cgit v1.2.3