shithub: hell

Download patch

ref: 976dbaad5ce07c999268da84ca691e4098517b06
parent: 787e0e641d5e4e4aeb89da6b5eecfc4c954c57c9
author: penny <penny@limitedideas.org>
date: Mon Sep 8 21:25:29 EDT 2025

Basic support for displaying messages we missed

--- a/hellclient.go
+++ b/hellclient.go
@@ -71,7 +71,7 @@
 				hc.updatePrompt()
 				return r, false
 			}
-			if r == readline.CharKill {
+			if r == readline.CharInterrupt {
 				return toPUA(r), true
 			}
 			if r == readline.CharEnter && hc.multiLineMode {
@@ -88,7 +88,7 @@
 			}
 			
 			//If we get an interupt just clear the line if it's not empty
-			if key == toPUA(readline.CharKill) {
+			if key == toPUA(readline.CharInterrupt) {
 				if len(line) > 1 {
 					return nil, 0, true
 				}
@@ -121,7 +121,24 @@
 		hc.updatePrompt()
 		//start up post dispatcher
 		go hc.clientDispatch()
-	}()
+		
+		markers, err := hc.client.GetTimelineMarkers(context.Background(), []string{"home"})
+		if err != nil {
+			return
+		}
+
+		initReferenceSystem()
+
+		LastID := markers["home"].LastID
+		page := &mastodon.Pagination{SinceID: LastID}
+		statuses, err := hc.client.GetTimelineHome(context.Background(), page)
+		for _, status := range statuses {
+			hc.printPost("?" + hc.ctxref.ref, status)
+			saveRef(hc.ctxref.postmap, status, "?" + hc.ctxref.ref)
+			hc.ctxref.ref = IncrementString(hc.ctxref.ref)
+			continue
+		}
+		}()
 
 	homeMap := make(map[string]*mastodon.Status)
 
--