Update API

* Remove fwdUserId
* Rename createComment to upsertComment
This commit is contained in:
ekzyis 2023-08-27 23:31:04 +02:00
parent 8523205a79
commit 22e41321bc
1 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,6 @@ func Items(query *ItemsQuery) (*ItemsCursor, error) {
id id
name name
} }
fwdUserId
otsHash otsHash
position position
sats sats
@ -137,8 +136,8 @@ func PostLink(url string, title string, sub string) (int, error) {
func CreateComment(parentId int, text string) (int, error) { func CreateComment(parentId int, text string) (int, error) {
body := GraphQLPayload{ body := GraphQLPayload{
Query: ` Query: `
mutation createComment($text: String!, $parentId: ID!) { mutation upsertComment($text: String!, $parentId: ID!) {
createComment(text: $text, parentId: $parentId) { upsertComment(text: $text, parentId: $parentId) {
id id
} }
}`, }`,