From a60988f46805fbf3f8d31bb3e723830e4d3ae21e Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 13 May 2018 12:28:51 +0200 Subject: [PATCH] Fix handling of private posts Before, a private post would show an empty page with the footer (tags) at the bottom. Now, a message is shown, and sensitive information is hidden. --- blog.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blog.php b/blog.php index cc6e08a..311503a 100644 --- a/blog.php +++ b/blog.php @@ -228,10 +228,13 @@ echo '
'; // Header is rendered in renderPost() require $postUrl; // This will render the body - //if ($blogentry->isPublic) { // Render the blog footer + if ($blogentry->isVisible) { // Render the blog footer //echo "

Written by $blogentry->author

"; renderFooter(); - //} + } else { + echo("

Private Post

"); + echo("

This post has not yet been made public by the publisher. Please check back again later. Thank you.

"); + } echo '
'; } else {