ref: 828bcd2ad50d3c5a696bc038a5020189135168ad
parent: 4e2bd9a95dc4ac1e4eb7424651d4b28e28c254b1
author: penny <penny@limitedideas.org>
date: Wed Sep 24 20:06:40 EDT 2025
don't do that
--- a/main.go
+++ b/main.go
@@ -207,7 +207,7 @@
if err != nil {printMastodonErr(err)
} else {- fmt.Printf(hc.formatFavorite(postItem, arguments) + "\n")
+ fmt.Println(hc.formatFavorite(postItem, arguments))
}
return
case "mark":
@@ -215,7 +215,7 @@
if err != nil {printMastodonErr(err)
} else {- fmt.Printf(hc.formatBookmark(postItem, arguments) + "\n")
+ fmt.Println(hc.formatBookmark(postItem, arguments))
}
return
case "unmark":
@@ -228,7 +228,7 @@
if err != nil {printMastodonErr(err)
} else {- fmt.Printf(hc.formatUnbookmark(postItem, arguments) + "\n")
+ fmt.Println(hc.formatUnbookmark(postItem, arguments))
}
return
case "open":
@@ -288,7 +288,7 @@
return
}
if len(context.Descendants) == 0 {- fmt.Printf("\"%v\" has no children\n")+ fmt.Printf("\"%s\" has no children\n", index)}
for post := range context.Descendants {hc.printAndIncrement(hc.ctxref, context.Descendants[post])
@@ -341,7 +341,7 @@
case "account":
if foundindex {account := postItem.Account
- fmt.Printf(hc.formatAccount(&account))
+ fmt.Println(hc.formatAccount(&account))
return
}
accounts, err := hc.client.AccountsSearchResolve(context.Background(), index, 1, true)
@@ -354,7 +354,7 @@
return
}
account := accounts[0]
- fmt.Printf(hc.formatAccount(account))
+ fmt.Println(hc.formatAccount(account))
return
case "fpost":
_, err := hc.filterStatus(postItem)
@@ -371,7 +371,7 @@
fmt.Printf("Error unfiltering post: %v\n", err)return
}
- fmt.Printf(hc.formatWithPrefix(postItem, index, "Unfiltered:") + "\n")
+ fmt.Println(hc.formatWithPrefix(postItem, index, "Unfiltered:"))
return
}
--
⑨