ref: 0e606774b33138054e86c326946d78aa7d18a2cf
parent: bc18dbd45d3daed41e2f0c177efc9a7d0ebdc025
author: penny <penny@limitedideas.org>
date: Mon Oct 6 15:21:44 EDT 2025
fix indexes in /notice
--- a/notifications.go
+++ b/notifications.go
@@ -71,7 +71,7 @@
func (hc *Hellclient) RenderNotificationsArray(notifications []*mastodon.Notification) []string {var noticeTexts []string
status := func(Notification *mastodon.Notification, plaintext string) {- notification := fmt.Sprintf("[%s] from <%s>: %s", Notification.Type, Notification.Account.Acct, plaintext)+ notification := fmt.Sprintf("[%s] from <%s>: %s\n", Notification.Type, Notification.Account.Acct, plaintext)notification, _ = hyphenate(notification)
noticeTexts = append(noticeTexts, notification)
@@ -78,7 +78,7 @@
}
other := func(Notification *mastodon.Notification) {- notification := fmt.Sprintf("[%s] from <%s>", Notification.Type, Notification.Account.Acct)+ notification := fmt.Sprintf("[%s] from <%s>\n", Notification.Type, Notification.Account.Acct)notification, _ = hyphenate(notification)
noticeTexts = append(noticeTexts, notification)
}
@@ -109,7 +109,7 @@
_, plaintext := hc.RenderPostPlaintext(Notification.Status, *hc.ctxref)
printstatus(Notification, plaintext)
- saveRef(hc.ctxref.postmap, Notification.Status, hc.ctxref.ref)
+ saveRef(hc.ctxref.postmap, Notification.Status, hc.ctxref)
hc.ctxref.ref = IncrementString(hc.ctxref.ref)
continue
}
--- a/references.go
+++ b/references.go
@@ -57,8 +57,8 @@
(statusMap)[index] = post
}
-func saveRef(statusMap map[string]*mastodon.Status, post *mastodon.Status, index string) {- (statusMap)[index] = post
+func saveRef(statusMap map[string]*mastodon.Status, post *mastodon.Status, index *postref) {+ (statusMap)[index.prefix + index.ref] = post
}
func IncrementSequence(r rune) (rune, bool) {--
⑨