mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Add comment.
This commit is contained in:
parent
7c7a4917e7
commit
8ac057a70f
@ -51,6 +51,8 @@ pub async fn create_comment(
|
|||||||
|
|
||||||
// Check for a community ban
|
// Check for a community ban
|
||||||
let post_id = data.post_id;
|
let post_id = data.post_id;
|
||||||
|
|
||||||
|
// Read the full post view in order to get the comments count.
|
||||||
let post_view = PostView::read(
|
let post_view = PostView::read(
|
||||||
&mut context.pool(),
|
&mut context.pool(),
|
||||||
post_id,
|
post_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user