request_counter: &mut i32,
) -> Result<(), LemmyError> {
verify_activity(&self.id, self.actor.inner(), &context.settings())?;
- let community = self.to[0].dereference(context, request_counter).await?;
+ let community = self.to[0]
+ .dereference(context, context.client(), request_counter)
+ .await?;
verify_person_in_community(&self.actor, &community, context, request_counter).await?;
Ok(())
}
context: &Data<LemmyContext>,
request_counter: &mut i32,
) -> Result<(), LemmyError> {
- let actor = self.actor.dereference(context, request_counter).await?;
- match self.object.dereference(context, request_counter).await? {
+ let actor = self
+ .actor
+ .dereference(context, context.client(), request_counter)
+ .await?;
+ match self
+ .object
+ .dereference(context, context.client(), request_counter)
+ .await?
+ {
PostOrComment::Post(post) => {
let report_form = PostReportForm {
creator_id: actor.id,