This commit is contained in:
parent
f19ff47e99
commit
5c0621dc9b
|
@ -64,20 +64,10 @@ async def get_my_followed() -> List[ChatMember]:
|
|||
|
||||
async def get_author(user: str = ""):
|
||||
query_name = "get_author_id"
|
||||
query_type = "query"
|
||||
operation = "GetAuthorId"
|
||||
query_fields = "id slug pic name"
|
||||
|
||||
gql = {
|
||||
"query": query_type
|
||||
+ "(user: $user) "
|
||||
+ operation
|
||||
+ "($user: String!) { "
|
||||
+ query_name
|
||||
+ " { "
|
||||
+ query_fields
|
||||
+ "} "
|
||||
+ " }",
|
||||
"query": f"query {operation}($user: String!) {{ {query_name}(user: $user) {{ id slug pic name }} }}",
|
||||
"operationName": operation,
|
||||
"variables": {"user": user},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user