From 6514cd5b6f28a6df8219f46f9992460bac3e0ca9 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 11 Jan 2020 22:24:59 +0000 Subject: [PATCH] butone --- cmd/mi-init/main.go | 2 +- cmd/mi/posse.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/mi-init/main.go b/cmd/mi-init/main.go index d4beff5..30146b1 100644 --- a/cmd/mi-init/main.go +++ b/cmd/mi-init/main.go @@ -38,7 +38,7 @@ func main() { "blogposts", "reddit_comments", "reddit_posts", - "twitter", + "tweets", } var result error diff --git a/cmd/mi/posse.go b/cmd/mi/posse.go index e23d484..dc50ab5 100644 --- a/cmd/mi/posse.go +++ b/cmd/mi/posse.go @@ -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()