This commit is contained in:
parent
b8f86e5d5e
commit
9439d71249
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user