Commit cf012c4

Eric Bower  ·  2025-09-07 15:43:46 -0400 EDT
parent 0a997c5
fix(feeds): last digest can be nil
1 files changed,  +6, -1
+6, -1
......@@ -86,11 +86,16 @@ func Middleware(dbpool db.DB, cfg *shared.ConfigSite) pssh.SSHServerMiddleware {
8686 }
8787 nd, _ := gronx.NextTickAfter(cron, DateToMin(time.Now()), true)
8888 nextDigest = nd.Format(time.RFC3339)
89+ last := post.Data.LastDigest
90+ lastStr := "never"
91+ if last != nil {
92+ lastStr = last.Format(time.RFC3339)
93+ }
8994 _, _ = fmt.Fprintf(
9095 writer,
9196 "%s\t%s\t%s\t%s\t%d/10\r\n",
9297 post.Filename,
93- post.Data.LastDigest.Format(time.RFC3339),
98+ lastStr,
9499 nextDigest,
95100 cron,
96101 post.Data.Attempts,