actor: &Person,
context: &LemmyContext,
) -> Result<(), LemmyError> {
- let id = generate_activity_id(UpdateType::Update)?;
+ let id = generate_activity_id(
+ UpdateType::Update,
+ &context.settings().get_protocol_and_hostname(),
+ )?;
let update = UpdateCommunity {
actor: ObjectId::new(actor.actor_id()),
to: [PublicUrl::Public],
context: &LemmyContext,
request_counter: &mut i32,
) -> Result<(), LemmyError> {
- verify_activity(self)?;
+ verify_activity(self, &context.settings())?;
verify_person_in_community(&self.actor, &self.cc[0], context, request_counter).await?;
verify_mod_action(&self.actor, self.cc[0].clone(), context).await?;
Ok(())
})
.await??;
- let updated_community =
- Group::from_apub_to_form(&self.object, &community.actor_id.clone().into()).await?;
+ let updated_community = Group::from_apub_to_form(
+ &self.object,
+ &community.actor_id.clone().into(),
+ &context.settings(),
+ )
+ .await?;
let cf = CommunityForm {
name: updated_community.name,
title: updated_community.title,