ref: 826f6d6a02a324876bb96b041a299710b8f89fb8
parent: 7c96692a58c6ed3b57bb824e6a452349e87775ab
author: penny <penny@limitedideas.org>
date: Tue Aug 12 21:47:07 EDT 2025
Remove extraneous error printing, add more post hints
--- a/mastodon.go
+++ b/mastodon.go
@@ -136,11 +136,18 @@
switch key {case "unlisted":
toot.Visibility = "unlisted"
+ case "public":
+ toot.Visibility = "public"
+ case "followers":
+ toot.Visibility = "private"
+ case "direct":
+ toot.Visibility = "direct"
case "subject":
if(len(val) > 0) {toot.SpoilerText = val
}
-
+ case "sensitive":
+ toot.Sensitive = true
}
}
*postpointer = posttext
@@ -152,21 +159,15 @@
InReplyToID: replyto,
}
+ processStatusHints(&toot, &posttext)
+
if currentuser == postItem.Account.ID {status, err = postStatusDetailed(client, toot)
- if err != nil {- fmt.Println(err)
- }
return
}
- processStatusHints(&toot, &posttext)
-
toot.Status = "@"+getUserString(postItem)+" "+posttext
status, err = postStatusDetailed(client, toot)
- if err != nil {- fmt.Println(err)
- }
return
}
@@ -186,11 +187,6 @@
func postStatusDetailed(client mastodon.Client, toot mastodon.Toot) (status *mastodon.Status, err error) {status, err = client.PostStatus(context.Background(), &toot)
-
- if err != nil {- printMastodonErr(err)
- return
- }
return
}
--
⑨