X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapub%2Fsrc%2Fhttp%2Fcomment.rs;h=66794f90c5d1a2bcba7c07bc73ebf4f50b220282;hb=1d38aad9d3d51ef606074d5b49a8030c49dd0e9e;hp=9e78da2ab572091035b01511575663d59f877eb2;hpb=73492af4b09448684ffde3d55454434ec3ed490b;p=lemmy.git diff --git a/crates/apub/src/http/comment.rs b/crates/apub/src/http/comment.rs index 9e78da2a..66794f90 100644 --- a/crates/apub/src/http/comment.rs +++ b/crates/apub/src/http/comment.rs @@ -21,7 +21,7 @@ pub(crate) async fn get_apub_comment( context: Data, ) -> Result { let id = CommentId(info.comment_id.parse::()?); - let comment: ApubComment = Comment::read(context.pool(), id).await?.into(); + let comment: ApubComment = Comment::read(&mut context.pool(), id).await?.into(); if !comment.local { return Err(err_object_not_local()); }