authorsall-fix
This commit is contained in:
@@ -175,10 +175,9 @@ def author_unfollow(user, slug):
|
||||
@query.field("authorsAll")
|
||||
async def get_authors_all(_, _info):
|
||||
users = await UserStorage.get_all_users()
|
||||
authorslugs = ShoutAuthorStorage.shouts_by_author.keys()
|
||||
authors = []
|
||||
for author in users:
|
||||
if author.slug in authorslugs:
|
||||
if ShoutAuthorStorage.shouts_by_author.get(author.slug):
|
||||
author.stat = await get_author_stat(author.slug)
|
||||
authors.append(author)
|
||||
return authors
|
||||
|
Reference in New Issue
Block a user