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", "blogposts",
"reddit_comments", "reddit_comments",
"reddit_posts", "reddit_posts",
"twitter", "tweets",
} }
var result error var result error

View File

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