From bf213cd0b0634b4cfefb0b8267e33b37f6060ff5 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 6 Oct 2023 12:40:46 -0400 Subject: [PATCH] Fix drafts never showing, even when not part of private/protected blog --- posts.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/posts.go b/posts.go index 1a44d28..b083ffa 100644 --- a/posts.go +++ b/posts.go @@ -434,9 +434,7 @@ func handleViewPost(app *App, w http.ResponseWriter, r *http.Request) error { log.Error("view post: %v", err) } - protectDraft = (collection.IsPrivate() || collection.IsProtected()) - } else { - protectDraft = true + protectDraft = collection.IsPrivate() || collection.IsProtected() } // Check if post has been unpublished