shithub: hell

Download patch

ref: b711e39e9ed316a2d67b029b4d8e748589d9dfd2
parent: 00f57e46e617dd29b735f787060ae98f7007ed5b
author: penny <penny@limitedideas.org>
date: Sat Sep 6 20:26:31 EDT 2025

Edit command fixes up the HTML

--- a/main.go
+++ b/main.go
@@ -10,6 +10,7 @@
 	"strings"
 
 	"github.com/mattn/go-mastodon"
+	"github.com/k3a/html2text"
 )
 
 func main() {
@@ -272,7 +273,7 @@
 				return
 			case "edit":
 				if content == "" || content == " " {
-					rl.SetDefault(fmt.Sprintf("/edit %v %v", index, postItem.Content))
+					rl.SetDefault(fmt.Sprintf("/edit %v %v", index, html2text.HTML2Text(postItem.Content)))
 					return
 				}
 				var MediaIDs []mastodon.ID
--