ref: 320cebac7a88a9278efa314fafa019e37536c644
parent: fe8e263ce4b63f537ede902c98f20557dd54e610
author: penny <penny@limitedideas.org>
date: Mon Aug 18 19:00:06 EDT 2025
Fix formatting on un-filtering
--- a/filtering.go
+++ b/filtering.go
@@ -60,7 +60,7 @@
}
func (hc *Hellclient) filterStatus(status *mastodon.Status) (result *mastodon.FilterV2, err error) {- result, err = hc.GetOrCreateFilter("hellclient status filter", []string{"notifications", "public", "thread", "account"}, "hide")+ result, err = hc.GetOrCreateFilter("hellclient status filter", []string{"notifications", "public", "thread", "account", "home"}, "hide") if err != nil {return
--- a/main.go
+++ b/main.go
@@ -303,7 +303,7 @@
fmt.Printf("Error unfiltering post: %v\n", err)return
}
- fmt.Println(hc.formatWithPrefix(postItem, index, "Unfiltered:"))
+ fmt.Printf(hc.formatWithPrefix(postItem, index, "Unfiltered:") + "\n")
return
}
--- a/mastodon.go
+++ b/mastodon.go
@@ -220,7 +220,7 @@
}
func (hc *Hellclient) formatWithPrefix(post *mastodon.Status, index string, prefix string) string {- postString := fmt.Sprintf("%v %v", prefix, index)+ postString := fmt.Sprintf("%v %v>", prefix, index)return hyphenate(hc.formatStatusDetailed(post, "", postString))
}
func (hc *Hellclient) formatFavorite(post *mastodon.Status, index string) string {--
⑨