shithub: hell

Download patch

ref: 5cc516e1916dd0e29cbb97fed81bd35986e27510
parent: a80d76edbe913b8f6d9aace23357ca4d41b1c93d
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) {
 
--