shithub: hell

Download patch

ref: 3d5b43335f4e5caaf825f646b94db99ef3caf8f7
parent: c83b73acec1bb90fe56f852c09af976c9079e409
author: penny <penny@limitedideas.org>
date: Thu Oct 9 10:20:03 EDT 2025

fix renderer_test

--- a/renderer_test.go
+++ b/renderer_test.go
@@ -37,13 +37,10 @@
 	}
 	for _, param := range parameters {
 		sf := &StatusFormatter{
-			hc: &Hellclient{
-				urlMap: make(map[string][]string), // Initialize urlMap to avoid nil map assignment
-			},
 			status: &mastodon.Status{
 				Content: param.post,
 			},
-			postContext: &postref{ref: "1"},
+			postContext: &postref{ref: "1", urlmap: make(map[string][]string)},
 		}
 		rendered := sf.statusContent(sf.status)
 		if rendered != param.expected {
--