This commit is contained in:
parent
2db82eddfd
commit
f19ff47e99
|
@ -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},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user