refactor: show legacy comments even if new comments are disabled
This commit is contained in:
parent
95f42bcfe1
commit
154df65978
@ -155,7 +155,13 @@
|
|||||||
async>
|
async>
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<p class="text-center text-muted">Comments are not enabled for this post.</p>
|
||||||
|
}
|
||||||
|
|
||||||
|
@{
|
||||||
int commentCount = BlogPostService.GetLegacyCommentCount(post);
|
int commentCount = BlogPostService.GetLegacyCommentCount(post);
|
||||||
if (commentCount > 0)
|
if (commentCount > 0)
|
||||||
{
|
{
|
||||||
@ -206,8 +212,4 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<p class="text-center text-muted">Comments are not enabled for this post.</p>
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user