From 9439d712499d0f7adea7cb9e9a9bd2c881f3f48c Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Dec 2024 21:25:03 +0300 Subject: [PATCH] get-author-followers-fix --- resolvers/author.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index 7709c5f1..8c152f85 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -240,9 +240,9 @@ def create_author(user_id: str, slug: str, name: str = ""): @query.field("get_author_followers") -async def get_author_followers(_, _info, slug: str): +async def get_author_followers(_, _info, slug: str, user: str = "", author_id: int = 0): logger.debug(f"getting followers for @{slug}") - author_id = get_author_id_from(slug=slug, user="", author_id=0) + author_id = get_author_id_from(slug=slug, user=user, author_id=author_id) followers = [] if author_id: followers = await get_cached_author_followers(author_id)