From 7c08e1fbe04e568b4bca7be9e089b5eb9a6ba7b0 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 8 Mar 2026 09:54:46 +1100 Subject: [PATCH] Fixed bug which was exposing draft posts --- services/publisher/iter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/publisher/iter.go b/services/publisher/iter.go index a125fb1..48b5252 100644 --- a/services/publisher/iter.go +++ b/services/publisher/iter.go @@ -20,6 +20,10 @@ func (s *Publisher) postIter(ctx context.Context, site int64) iter.Seq[models.Ma for { for _, post := range page { + if post.State != models.StatePublished { + continue + } + if !yield(models.Maybe[*models.Post]{Value: post}) { return }