Fixed bug which was exposing draft posts

This commit is contained in:
Leon Mika 2026-03-08 09:54:46 +11:00
parent fa9be69045
commit 7c08e1fbe0

View file

@ -20,6 +20,10 @@ func (s *Publisher) postIter(ctx context.Context, site int64) iter.Seq[models.Ma
for { for {
for _, post := range page { for _, post := range page {
if post.State != models.StatePublished {
continue
}
if !yield(models.Maybe[*models.Post]{Value: post}) { if !yield(models.Maybe[*models.Post]{Value: post}) {
return return
} }