- commit
- cf012c4
- parent
- 0a997c5
- author
- Eric Bower
- date
- 2025-09-07 15:43:46 -0400 EDT
fix(feeds): last digest can be nil
1 files changed,
+6,
-1
+6,
-1
1@@ -86,11 +86,16 @@ func Middleware(dbpool db.DB, cfg *shared.ConfigSite) pssh.SSHServerMiddleware {
2 }
3 nd, _ := gronx.NextTickAfter(cron, DateToMin(time.Now()), true)
4 nextDigest = nd.Format(time.RFC3339)
5+ last := post.Data.LastDigest
6+ lastStr := "never"
7+ if last != nil {
8+ lastStr = last.Format(time.RFC3339)
9+ }
10 _, _ = fmt.Fprintf(
11 writer,
12 "%s\t%s\t%s\t%s\t%d/10\r\n",
13 post.Filename,
14- post.Data.LastDigest.Format(time.RFC3339),
15+ lastStr,
16 nextDigest,
17 cron,
18 post.Data.Attempts,