actually authors, not users
This commit is contained in:
parent
3ebe067dc6
commit
4a837c6526
|
@ -637,7 +637,7 @@
|
||||||
"sekond-hend": "second-hand",
|
"sekond-hend": "second-hand",
|
||||||
"seksprosvet": "sex-education",
|
"seksprosvet": "sex-education",
|
||||||
"seksualizirovannoe-nasilie": "sexualized-violence",
|
"seksualizirovannoe-nasilie": "sexualized-violence",
|
||||||
"seksualnoe-nasilie": "sexual-violence",
|
"seksualnoe-nasilie": "sexualized-violence",
|
||||||
"sekty": "sects",
|
"sekty": "sects",
|
||||||
"semi": "semi",
|
"semi": "semi",
|
||||||
"semiotics": "semiotics",
|
"semiotics": "semiotics",
|
||||||
|
@ -701,7 +701,7 @@
|
||||||
"tataro-mongolskoe-igo": "mongol-tatar-yoke",
|
"tataro-mongolskoe-igo": "mongol-tatar-yoke",
|
||||||
"tatuirovki": "tattoo",
|
"tatuirovki": "tattoo",
|
||||||
"technology": "technology",
|
"technology": "technology",
|
||||||
"televidenie": "tv",
|
"televidenie": "television",
|
||||||
"telo": "body",
|
"telo": "body",
|
||||||
"telo-kak-iskusstvo": "body-as-art",
|
"telo-kak-iskusstvo": "body-as-art",
|
||||||
"terrorizm": "terrorism",
|
"terrorizm": "terrorism",
|
||||||
|
|
|
@ -15,6 +15,7 @@ from .inbox import get_unread_counter
|
||||||
from .reactions import get_reactions_for_shouts
|
from .reactions import get_reactions_for_shouts
|
||||||
from .topics import get_topic_stat
|
from .topics import get_topic_stat
|
||||||
from services.auth.users import UserStorage
|
from services.auth.users import UserStorage
|
||||||
|
from services.zine.shoutauthor import ShoutAuthorStorage
|
||||||
|
|
||||||
|
|
||||||
async def get_user_subscriptions(slug):
|
async def get_user_subscriptions(slug):
|
||||||
|
@ -189,6 +190,8 @@ def author_unfollow(user, slug):
|
||||||
@query.field("authorsAll")
|
@query.field("authorsAll")
|
||||||
async def get_authors_all(_, _info):
|
async def get_authors_all(_, _info):
|
||||||
authors = await UserStorage.get_all_users()
|
authors = await UserStorage.get_all_users()
|
||||||
|
authorslugs = await ShoutAuthorStorage.get_authors()
|
||||||
|
authors = filter(lambda a: a.emailConfirmed and a.slug in authorslugs, authors)
|
||||||
for author in authors:
|
for author in authors:
|
||||||
author.stat = await get_author_stat(author.slug)
|
author.stat = await get_author_stat(author.slug)
|
||||||
return authors
|
return authors
|
||||||
|
|
Loading…
Reference in New Issue
Block a user