This commit is contained in:
tonyrewin 2022-10-14 21:30:39 +03:00
parent 5c9399162e
commit 25267fa5b0
2 changed files with 2 additions and 4 deletions

View File

@ -33,7 +33,6 @@ from resolvers.reactions import (
update_reaction, update_reaction,
reactions_unfollow, reactions_unfollow,
reactions_follow, reactions_follow,
get_shout_reactions,
) )
from resolvers.topics import ( from resolvers.topics import (
topic_follow, topic_follow,
@ -108,7 +107,6 @@ __all__ = [
"create_community", "create_community",
"delete_community", "delete_community",
# reactions # reactions
"get_shout_reactions",
"reactions_follow", "reactions_follow",
"reactions_unfollow", "reactions_unfollow",
"create_reaction", "create_reaction",

View File

@ -12,7 +12,7 @@ from orm.topic import Topic, TopicFollower
from orm.user import User, UserRole, Role, UserRating, AuthorFollower from orm.user import User, UserRole, Role, UserRating, AuthorFollower
from .community import get_followed_communities from .community import get_followed_communities
from .inbox import get_unread_counter from .inbox import get_unread_counter
from .reactions import get_shout_reactions 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
@ -22,7 +22,7 @@ async def get_user_subscriptions(slug):
"unread": await get_unread_counter(slug), # unread inbox messages counter "unread": await get_unread_counter(slug), # unread inbox messages counter
"topics": [t.slug for t in get_followed_topics(0, slug)], # followed topics slugs "topics": [t.slug for t in get_followed_topics(0, slug)], # followed topics slugs
"authors": [a.slug for a in get_followed_authors(0, slug)], # followed authors slugs "authors": [a.slug for a in get_followed_authors(0, slug)], # followed authors slugs
"reactions": [r.shout for r in get_shout_reactions(0, slug)], # followed reacted shouts slugs "reactions": [r.shout for r in get_reactions_for_shouts(0, [slug, ])], # followed reacted shouts slugs
"communities": [c.slug for c in get_followed_communities(0, slug)], # followed communities slugs "communities": [c.slug for c in get_followed_communities(0, slug)], # followed communities slugs
} }