ref: d1285d9d3e239b94a2a2375945adf87033c7d927
parent: 0c3c92606846c5e1277b980a5d7903c1f1143345
author: penny <penny@limitedideas.org>
date: Sun Oct 5 22:43:05 EDT 2025
use templates for /like
--- a/main.go
+++ b/main.go
@@ -268,7 +268,8 @@
if err != nil {printMastodonErr(err)
} else {- fmt.Println(hc.formatFavorite(postItem, arguments))
+ line, _ := templater.render(fmt.Sprintf("Favourited: %s> $username $content $media_descriptions\n", index))+ fmt.Print(line)
}
return
case "mark":
--- a/mastodon.go
+++ b/mastodon.go
@@ -183,10 +183,6 @@
postString := fmt.Sprintf("%s %s>", prefix, index)return hc.formatStatusDetailed(post, "", postString)
}
-func (hc *Hellclient) formatFavorite(post *mastodon.Status, index string) string {- favString := fmt.Sprintf("Favorited: %s", index)- return hc.formatStatusDetailed(post, "", favString)
-}
func (hc *Hellclient) formatStatusDetailed(post *mastodon.Status, index string, prefix string) string {renderedPost, plaintexts := hc.renderStatus(post.Content, index)
--
⑨