refactor: show legacy comments even if new comments are disabled

This commit is contained in:
Oliver Booth 2024-11-13 16:04:30 +00:00
parent 95f42bcfe1
commit 154df65978
Signed by: oliverbooth
GPG Key ID: 2A862C3F46178E8E

View File

@ -155,7 +155,13 @@
async>
</script>
}
}
else
{
<p class="text-center text-muted">Comments are not enabled for this post.</p>
}
@{
int commentCount = BlogPostService.GetLegacyCommentCount(post);
if (commentCount > 0)
{
@ -206,8 +212,4 @@
</div>
}
}
}
else
{
<p class="text-center text-muted">Comments are not enabled for this post.</p>
}