Skip to content
Snippets Groups Projects
Commit 0d09ea5f authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'mi_no_awiat_for_follow_list' into 'develop'

no awiat for async method

See merge request !381
parents 2fb4c677 3fb0503a
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!381no await for async method
...@@ -370,7 +370,7 @@ async def get_follow_list(context, observer, follow_type='blacklisted'): ...@@ -370,7 +370,7 @@ async def get_follow_list(context, observer, follow_type='blacklisted'):
valid_types = ['blacklisted', 'follow_blacklist', 'muted', 'follow_muted'] valid_types = ['blacklisted', 'follow_blacklist', 'muted', 'follow_muted']
assert follow_type in valid_types, 'invalid follow_type' assert follow_type in valid_types, 'invalid follow_type'
account_data = get_profile(context, observer) account_data = await get_profile(context, observer)
metadata = account_data["metadata"]["profile"] metadata = account_data["metadata"]["profile"]
blacklist_description = metadata["blacklist_description"] if "blacklist_description" in metadata else '' blacklist_description = metadata["blacklist_description"] if "blacklist_description" in metadata else ''
muted_list_description = metadata["muted_list_description"] if "muted_list_description" in metadata else '' muted_list_description = metadata["muted_list_description"] if "muted_list_description" in metadata else ''
......
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