index collection sync info by hash rather than id

This commit is contained in:
friendica 2014-07-14 21:49:48 -07:00
parent 1accf82bd1
commit c398d556b3

View File

@ -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)