]> Untitled Git - lemmy.git/blobdiff - lemmy_api/src/community.rs
Fix federation of community removal/deletion, added docs (#125)
[lemmy.git] / lemmy_api / src / community.rs
index 4149053f68457b9401b16819d3359c3aa09c70fb..4c9d769bac6c077ac50fd18beb8ad8de8eb3c33e 100644 (file)
@@ -327,9 +327,9 @@ impl Perform for DeleteCommunity {
 
     // Send apub messages
     if deleted {
-      updated_community.send_delete(&user, context).await?;
+      updated_community.send_delete(context).await?;
     } else {
-      updated_community.send_undo_delete(&user, context).await?;
+      updated_community.send_undo_delete(context).await?;
     }
 
     let edit_id = data.edit_id;
@@ -395,9 +395,9 @@ impl Perform for RemoveCommunity {
 
     // Apub messages
     if removed {
-      updated_community.send_remove(&user, context).await?;
+      updated_community.send_remove(context).await?;
     } else {
-      updated_community.send_undo_remove(&user, context).await?;
+      updated_community.send_undo_remove(context).await?;
     }
 
     let edit_id = data.edit_id;