shithub: hell

Download patch

ref: edf1626779a26c2cea404735d9e42bcfe88eb359
parent: 94a4e8b5be14b7ab94ac62b006509dbc04407910
author: penny <penny@limitedideas.org>
date: Thu Sep 25 10:37:56 EDT 2025

remove extra lines from notifications

--- a/notifications.go
+++ b/notifications.go
@@ -71,12 +71,12 @@
 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\n\n", Notification.Type, Notification.Account.Acct, plaintext)
+		notification := fmt.Sprintf("[%s] from <%s>: %s\n", Notification.Type, Notification.Account.Acct, plaintext)
 		noticeTexts = append(noticeTexts, hyphenate(notification))
 	}
 
 	other := func(Notification *mastodon.Notification) {
-		notification := fmt.Sprintf("[%s] from <%s>\n\n", Notification.Type, Notification.Account.Acct)
+		notification := fmt.Sprintf("[%s] from <%s>\n", Notification.Type, Notification.Account.Acct)
 		noticeTexts = append(noticeTexts, hyphenate(notification))
 	}
 
--- a/pages.go
+++ b/pages.go
@@ -16,6 +16,8 @@
 	loader StatusLoader
 	//Array index for the item buffer
 	index int
+	//our previous index for going back
+	previndex int
 	//Semantic page number for the UI
 	page int
 	itembuffer *[]PageItem
@@ -70,8 +72,6 @@
 	if err != nil {
 		fmt.Printf("Error getting notification page: %s\n", err)
 	}
-	
-	fmt.Printf("%+v\n", noticeData.page)
 	noticeArray := noticeData.hc.RenderNotificationsArray(notices)
 	var itemArray []PageItem
 	for i, _ := range noticeArray {
--