- #[tracing::instrument(skip(context, websocket_id))]
- async fn perform(
- &self,
- context: &Data<LemmyContext>,
- websocket_id: Option<ConnectionId>,
- ) -> Result<PostResponse, LemmyError> {
- let data: &RemovePost = self;
- let local_user_view = local_user_view_from_jwt(&data.auth, context).await?;
+ let post_id = data.post_id;
+ let orig_post = Post::read(&mut context.pool(), post_id).await?;