diff --git a/resolvers/__init__.py b/resolvers/__init__.py index eefd9578..013a83dd 100644 --- a/resolvers/__init__.py +++ b/resolvers/__init__.py @@ -33,7 +33,6 @@ from resolvers.reactions import ( update_reaction, reactions_unfollow, reactions_follow, - get_shout_reactions, ) from resolvers.topics import ( topic_follow, @@ -108,7 +107,6 @@ __all__ = [ "create_community", "delete_community", # reactions - "get_shout_reactions", "reactions_follow", "reactions_unfollow", "create_reaction", diff --git a/resolvers/profile.py b/resolvers/profile.py index 57f622e9..f94a4902 100644 --- a/resolvers/profile.py +++ b/resolvers/profile.py @@ -12,7 +12,7 @@ from orm.topic import Topic, TopicFollower from orm.user import User, UserRole, Role, UserRating, AuthorFollower from .community import get_followed_communities 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 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 "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 - "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 }