From 154df65978a48588136cc1eb43f107a79e46a75b Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 13 Nov 2024 16:04:30 +0000 Subject: [PATCH] refactor: show legacy comments even if new comments are disabled --- OliverBooth/Pages/Blog/Article.cshtml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OliverBooth/Pages/Blog/Article.cshtml b/OliverBooth/Pages/Blog/Article.cshtml index 3300621..fed0d99 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml +++ b/OliverBooth/Pages/Blog/Article.cshtml @@ -155,7 +155,13 @@ async> } +} +else +{ +

Comments are not enabled for this post.

+} +@{ int commentCount = BlogPostService.GetLegacyCommentCount(post); if (commentCount > 0) { @@ -206,8 +212,4 @@ } } -} -else -{ -

Comments are not enabled for this post.

} \ No newline at end of file