verify_mod_action,
verify_person_in_community,
},
- objects::FromApubToForm,
- GroupExt,
+ objects::community::Group,
};
use activitystreams::activity::kind::UpdateType;
use lemmy_api_common::blocking;
#[serde(rename_all = "camelCase")]
pub struct UpdateCommunity {
to: PublicUrl,
- object: GroupExt,
+ object: Group,
cc: [Url; 1],
#[serde(rename = "type")]
kind: UpdateType,
}
async fn receive(
- &self,
+ self,
context: &LemmyContext,
- request_counter: &mut i32,
+ _request_counter: &mut i32,
) -> Result<(), LemmyError> {
let cc = self.cc[0].clone().into();
let community = blocking(context.pool(), move |conn| {
})
.await??;
- let updated_community = CommunityForm::from_apub(
- &self.object,
- context,
- community.actor_id.clone().into(),
- request_counter,
- false,
- )
- .await?;
+ let updated_community =
+ Group::from_apub_to_form(&self.object, &community.actor_id.clone().into()).await?;
let cf = CommunityForm {
name: updated_community.name,
title: updated_community.title,