This commit is contained in:
Cadey Ratio 2020-01-11 22:24:59 +00:00
parent 189ebfcd6b
commit 6514cd5b6f
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func main() {
"blogposts",
"reddit_comments",
"reddit_posts",
"twitter",
"tweets",
}
var result error

View File

@ -22,7 +22,8 @@ func (p Post) Format() string {
fmt.Fprintf(&sb, "New post %s: %s\n\n", p.Title, p.URL)
for _, tg := range p.Tags {
fmt.Fprintf(&sb, "#%s", tg)
tg = strings.ReplaceAll(tg, "-", "")
fmt.Fprintf(&sb, "#%s ", tg)
}
return sb.String()