shithub: hell

Download patch

ref: 1d841d7e15f2a47b5b86f351fb173c0cd61967b8
parent: 20d3065cd1ac663ce01079786320d3b3707e25a3
author: penny <penny@limitedideas.org>
date: Fri Sep 12 22:09:35 EDT 2025

Print loading message when loading posts

--- a/status.go
+++ b/status.go
@@ -3,6 +3,7 @@
 import (
 	"context"
 	"time"
+	"fmt"
 
 	"github.com/mattn/go-mastodon"
 )
@@ -13,6 +14,7 @@
 
 	var err error
 	var statuses []*mastodon.Status
+	
 
 	for {
 		statusbatch, err := GetTimeline(context.Background(), page)
@@ -21,6 +23,7 @@
 		}
 
 		if len(statusbatch) == 0 {
+			fmt.Print("")
 			break
 		}
 
@@ -29,6 +32,7 @@
 		}
 		//I really don't understand the server's results but erase the max ID and it paginates up I don't know man
 		page.MaxID = ""
+		fmt.Printf("Loaded %v statuses....", len(statuses))
 		time.Sleep(1 * time.Second)
 	}
 
--