Skip to content
Snippets Groups Projects
Commit 8c9d5b48 authored by Michael Telatynski's avatar Michael Telatynski
Browse files

Fix publicised groups API (singular) over federation

which was missing its fed client API, since there is no other API
it might as well reuse the bulk one and unwrap it

Signed-off-by: default avatarMichael Telatynski <7t3chguy@gmail.com>
parent c175a5f0
Branches
Tags
No related merge requests found
...@@ -383,11 +383,11 @@ class GroupsLocalHandler(object): ...@@ -383,11 +383,11 @@ class GroupsLocalHandler(object):
defer.returnValue({"groups": result}) defer.returnValue({"groups": result})
else: else:
result = yield self.transport_client.get_publicised_groups_for_user( 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],
) )["users"][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.
Please register or to comment