ref: 5364fb89ba736967fff5545cb0fa844e63b1600b
parent: bfe166425979c103dae1ee0b5c065a1d4d531f57
author: penny <penny@limitedideas.org>
date: Mon Oct 6 09:53:54 EDT 2025
rip out the last of the old renderer!
--- a/main.go
+++ b/main.go
@@ -498,7 +498,9 @@
fmt.Printf("Error unfiltering post: %v\n", err)return
}
- fmt.Println(hc.formatWithPrefix(postItem, index, "Unfiltered:"))
+ line, _ := templater.render(fmt.Sprintf("Unfiltered: %s> $username $content $media_descriptions\n", index))+ fmt.Print(line)
+
return
}
--- a/mastodon.go
+++ b/mastodon.go
@@ -179,21 +179,6 @@
return accountstring
}
-func (hc *Hellclient) formatWithPrefix(post *mastodon.Status, index string, prefix string) string {- postString := fmt.Sprintf("%s %s>", prefix, index)- return hc.formatStatusDetailed(post, "", postString)
-}
-
-func (hc *Hellclient) formatStatusDetailed(post *mastodon.Status, index string, prefix string) string {- renderedPost, plaintexts := hc.renderStatus(post.Content, index)
-
- rendered := fmt.Sprintf("%s>%s <%s> %s", index, prefix, post.Account.Username, html2text.HTML2Text(renderedPost))- for key, plaintext := range plaintexts {- rendered = strings.Replace(rendered, key, plaintext, 1)
- }
- return rendered
-}
-
func printMastodonErr(err error) { fmt.Printf("\r%v\n", err)}
--
⑨