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 }