shithub: hell

Download patch

ref: 6da65ab20885651ba1fc696db257649488641d53
parent: 88c2f84782b143700520a34822df756bc71f796f
author: penny <penny@limitedideas.org>
date: Sat Aug 2 17:56:36 EDT 2025

Format likes correctly

--- a/commands.go
+++ b/commands.go
@@ -34,4 +34,4 @@
 		}
 	}
 	return
-}
+}
\ No newline at end of file
--- a/main.go
+++ b/main.go
@@ -132,7 +132,7 @@
 			if err != nil {
 				printMastodonErr(err)
 			} else {
-				fmt.Printf("Favorited: %v\n", formatFavorite(postItem, arguments))
+				fmt.Printf(formatFavorite(postItem, arguments) + "\n")
 			}
 		case "open":
 			url := fmt.Sprintf("%v/statuses/%v", client.Config.Server, postItem.ID)
--- a/mastodon.go
+++ b/mastodon.go
@@ -148,7 +148,8 @@
 }
 
 func formatFavorite(post *mastodon.Status, index string) string {
-	return fmt.Sprintf("\rFavorited: %v <%v> %v", index, post.Account.Username, html2text.HTML2Text(post.Content))
+	favString := fmt.Sprintf("Favorited: %v", index)
+	return formatStatusDetailed(post, "", favString)
 }
 
 func formatStatus(post *mastodon.Status, index string) string {
@@ -242,7 +243,7 @@
 				deleted, ok := idmap[post.ID]
 				//didn't have this in the cache
 				if !ok {
-					fmt.Printf("Deleted: ID %v", post.ID)
+					fmt.Printf("Deleted: ID %v\n", post.ID)
 					continue
 				}
 				printPostDetailed("", deleted, "Deleted:")
--