This commit is contained in:
Felix Ableitner 2024-09-19 15:26:11 +02:00
parent 4b250cfe08
commit 158628026e

View file

@ -40,7 +40,9 @@ pub async fn get_post(
};
// Check to see if the person is a mod or admin, to show deleted / removed
let community_id = Post::read_xx(&mut context.pool(), post_id).await?.community_id;
let community_id = Post::read_xx(&mut context.pool(), post_id)
.await?
.community_id;
let is_mod_or_admin = is_mod_or_admin_opt(
&mut context.pool(),