Add comment.

update_read_comments_on_comment_creation
Dessalines 2024-05-24 09:23:15 -04:00
parent 7c7a4917e7
commit 8ac057a70f
1 changed files with 2 additions and 0 deletions

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,