diff --git a/sn.go b/sn.go index 91f7eac..77b8ac3 100644 --- a/sn.go +++ b/sn.go @@ -111,12 +111,11 @@ func PostStoryToStackerNews(story *Story) { body := GraphQLPayload{ Query: ` - mutation upsertLink($url: String!, $title: String!) { - upsertLink(url: $url, title: $title) { - id - } - } - `, + mutation upsertLink($url: String!, $title: String!) { + upsertLink(url: $url, title: $title) { + id + } + }`, Variables: map[string]interface{}{ "url": story.Url, "title": story.Title,