Limit title to 80 chars

This commit is contained in:
ekzyis 2023-08-30 16:16:53 +02:00
parent ef9b948f0e
commit bd4c8fb4a9
1 changed files with 1 additions and 1 deletions

2
sn.go
View File

@ -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 { if err != nil {
return -1, fmt.Errorf("error posting link: %w", err) return -1, fmt.Errorf("error posting link: %w", err)
} }