diff --git a/services/core.py b/services/core.py index 4f825ef..fb84874 100644 --- a/services/core.py +++ b/services/core.py @@ -63,13 +63,21 @@ async def get_my_followed() -> List[ChatMember]: async def get_author(user: str = ""): - query_name = "get_author_id(user: $user)" + query_name = "get_author_id" query_type = "query" - operation = "GetAuthorId($user: String!)" + operation = "GetAuthorId" query_fields = "id slug pic name" gql = { - "query": query_type + " " + operation + " { " + query_name + " { " + query_fields + "} " + " }", + "query": query_type + + "(user: $user) " + + operation + + "($user: String!) { " + + query_name + + " { " + + query_fields + + "} " + + " }", "operationName": operation, "variables": {"user": user}, }