Limit title to 80 chars
This commit is contained in:
parent
ef9b948f0e
commit
bd4c8fb4a9
2
sn.go
2
sn.go
|
@ -38,7 +38,7 @@ func PostStoryToStackerNews(story *Story, options PostStoryOptions) (int, error)
|
|||
}
|
||||
}
|
||||
|
||||
parentId, err := sn.PostLink(url, story.Title, "tech")
|
||||
parentId, err := sn.PostLink(url, story.Title[0:80], "tech")
|
||||
if err != nil {
|
||||
return -1, fmt.Errorf("error posting link: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue