Skip to content
Snippets Groups Projects
Unverified Commit b9e4a979 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #2772 from matrix-org/t3chguy/patch-1

Fix publicised groups GET API (singular) over federation
parents c175a5f0 5f07f569
No related branches found
No related tags found
No related merge requests found
...@@ -383,11 +383,12 @@ class GroupsLocalHandler(object): ...@@ -383,11 +383,12 @@ class GroupsLocalHandler(object):
defer.returnValue({"groups": result}) defer.returnValue({"groups": result})
else: else:
result = yield self.transport_client.get_publicised_groups_for_user( bulk_result = yield self.transport_client.bulk_get_publicised_groups(
get_domain_from_id(user_id), user_id get_domain_from_id(user_id), [user_id],
) )
result = bulk_result.get("users", {}).get(user_id)
# TODO: Verify attestations # TODO: Verify attestations
defer.returnValue(result) defer.returnValue({"groups": result})
@defer.inlineCallbacks @defer.inlineCallbacks
def bulk_get_publicised_groups(self, user_ids, proxy=True): def bulk_get_publicised_groups(self, user_ids, proxy=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment