Add comment.

This commit is contained in:
Dessalines 2024-05-24 09:23:15 -04:00
parent 7c7a4917e7
commit 8ac057a70f

View file

@ -51,6 +51,8 @@ pub async fn create_comment(
// Check for a community ban
let post_id = data.post_id;
// Read the full post view in order to get the comments count.
let post_view = PostView::read(
&mut context.pool(),
post_id,