butone
This commit is contained in:
parent
189ebfcd6b
commit
6514cd5b6f
|
@ -38,7 +38,7 @@ func main() {
|
|||
"blogposts",
|
||||
"reddit_comments",
|
||||
"reddit_posts",
|
||||
"twitter",
|
||||
"tweets",
|
||||
}
|
||||
|
||||
var result error
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue