Add new required field 'sub'
This commit is contained in:
parent
2a9b7c6737
commit
6cb901728a
5
sn.go
5
sn.go
|
@ -187,14 +187,15 @@ func PostStoryToStackerNews(story *Story, options PostStoryOptions) (int, error)
|
||||||
|
|
||||||
body := GraphQLPayload{
|
body := GraphQLPayload{
|
||||||
Query: `
|
Query: `
|
||||||
mutation upsertLink($url: String!, $title: String!) {
|
mutation upsertLink($url: String!, $title: String!, $sub: String!) {
|
||||||
upsertLink(url: $url, title: $title) {
|
upsertLink(url: $url, title: $title, sub: $sub) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
Variables: map[string]interface{}{
|
Variables: map[string]interface{}{
|
||||||
"url": story.Url,
|
"url": story.Url,
|
||||||
"title": story.Title,
|
"title": story.Title,
|
||||||
|
"sub": "bitcoin",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
resp, err := MakeStackerNewsRequest(body)
|
resp, err := MakeStackerNewsRequest(body)
|
||||||
|
|
Loading…
Reference in New Issue