shithub: hell

Download patch

ref: bc6239255f3e78b70be9046bbf8abe9ef0cf23f5
parent: 68440ced5a2a8cad2643c0f9ed8172426c17d8ac
author: penny <penny@limitedideas.org>
date: Mon Oct 20 09:02:56 EDT 2025

strip CRs from statuses after the HTML render

git/query: bad hash 0c54172cf4a1629f4d99f5975c7242c434b14171
--- a/renderer.go
+++ b/renderer.go
@@ -34,6 +34,7 @@
 	for key, plaintext := range plaintexts {
 		renderedPost = strings.Replace(renderedPost, key, plaintext, 1)
 	}
+	renderedPost = strings.ReplaceAll(renderedPost, "\r", "")
 	return renderedPost
 }
 
--- a/status.go
+++ b/status.go
@@ -7,7 +7,7 @@
 	mastodon "codeberg.org/penny64/hellclient-go-mastodon"
 )
 
-const maxUnreadStatusesToLoad = 100
+const maxUnreadStatusesToLoad = 30
 
 func (hc *Hellclient) GetStatusesSince(ID mastodon.ID, GetTimeline func(ctx context.Context, pg *mastodon.Pagination) ([]*mastodon.Status, error)) ([]*mastodon.Status, error) {
 
--