mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 19:01:03 +00:00
Add comment.
This commit is contained in:
parent
7c7a4917e7
commit
8ac057a70f
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue