- // Mod tables
- let form = ModRemovePostForm {
- mod_person_id: local_user_view.person.id,
- post_id: data.post_id,
- removed: Some(removed),
- reason: data.reason.clone(),
- };
- ModRemovePost::create(&mut context.pool(), &form).await?;
+ // Mod tables
+ let form = ModRemovePostForm {
+ mod_person_id: local_user_view.person.id,
+ post_id: data.post_id,
+ removed: Some(removed),
+ reason: data.reason.clone(),
+ };
+ ModRemovePost::create(&mut context.pool(), &form).await?;
+
+ let person_id = local_user_view.person.id;
+ ActivityChannel::submit_activity(
+ SendActivityData::RemovePost(post, local_user_view.person, data.0),
+ &context,
+ )
+ .await?;