Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix publicised groups GET API (singular) over federation #2772

Merged
merged 2 commits into from Jan 10, 2018

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jan 10, 2018

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: Michael Telatynski 7t3chguy@gmail.com

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: Michael Telatynski <7t3chguy@gmail.com>
)
result = yield self.transport_client.bulk_get_publicised_groups(
get_domain_from_id(user_id), [user_id],
)["users"][user_id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work as you're doing deferred[..] rather than (yield deferred)[..]. I'd suggest:

thign = yield foo
result = thing.get("users", {}).get(user_id)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@erikjohnston erikjohnston merged commit b9e4a97 into develop Jan 10, 2018
@hawkowl hawkowl deleted the t3chguy/patch-1 branch September 20, 2018 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants