shithub: hell

Download patch

ref: 33dcfcd19bd18f4379384fba8a898b12402def78
parent: 3e9bb7f04b8c5690caaf5dac3c827758fb819629
author: penny <penny@limitedideas.org>
date: Tue Oct 14 05:45:19 EDT 2025

invert logic

--- a/config.go
+++ b/config.go
@@ -169,10 +169,11 @@
 
 func expandDir(dir string) string {
 	homedir, err := os.UserHomeDir()
-	if err != nil {
+	if err == nil {
 		dir = strings.ReplaceAll(dir, "~", homedir)
 	} else {
 		//We're not gonna bail but what is wrong with this install?
+		fmt.Printf("WARNING: no home directory found. Using current directory.\n")
 		dir = strings.ReplaceAll(dir, "~", ".")
 	}
 	return os.ExpandEnv(dir)
--- a/mastodon.go
+++ b/mastodon.go
@@ -97,6 +97,8 @@
 			}
 		case "sensitive":
 			toot.Sensitive = true
+			case "markdown":
+			toot.ContentType = "text/markdown"
 		}
 	}
 	*postpointer = posttext
--