diff options
author | Dessalines <dessalines@users.noreply.github.com> | 2020-05-15 12:36:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 12:36:11 -0400 |
commit | 940dc73f280742e553395d6a56eaca015a234b3a (patch) | |
tree | e81748decb1dc10d1ace2ad6318a94d063ccf23c /server/src/apub/community.rs | |
parent | 3a4973ad68562f9ccb4a9f4442333e0478bc7b04 (diff) |
Federated mentions. Fixes #681 (#717)
* Federated mentions. Fixes #681
* Changing some todos, adding comments.
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r-- | server/src/apub/community.rs | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs index f4e8848f..d8ea86c7 100644 --- a/server/src/apub/community.rs +++ b/server/src/apub/community.rs @@ -114,7 +114,11 @@ impl ActorType for Community { let id = format!("{}/delete/{}", self.actor_id, uuid::Uuid::new_v4()); let mut delete = Delete::default(); - populate_object_props(&mut delete.object_props, &self.get_followers_url(), &id)?; + populate_object_props( + &mut delete.object_props, + vec![self.get_followers_url()], + &id, + )?; delete .delete_props @@ -135,7 +139,11 @@ impl ActorType for Community { let id = format!("{}/delete/{}", self.actor_id, uuid::Uuid::new_v4()); let mut delete = Delete::default(); - populate_object_props(&mut delete.object_props, &self.get_followers_url(), &id)?; + populate_object_props( + &mut delete.object_props, + vec![self.get_followers_url()], + &id, + )?; delete .delete_props @@ -147,7 +155,11 @@ impl ActorType for Community { let undo_id = format!("{}/undo/delete/{}", self.actor_id, uuid::Uuid::new_v4()); let mut undo = Undo::default(); - populate_object_props(&mut undo.object_props, &self.get_followers_url(), &undo_id)?; + populate_object_props( + &mut undo.object_props, + vec![self.get_followers_url()], + &undo_id, + )?; undo .undo_props @@ -168,7 +180,11 @@ impl ActorType for Community { let id = format!("{}/remove/{}", self.actor_id, uuid::Uuid::new_v4()); let mut remove = Remove::default(); - populate_object_props(&mut remove.object_props, &self.get_followers_url(), &id)?; + populate_object_props( + &mut remove.object_props, + vec![self.get_followers_url()], + &id, + )?; remove .remove_props @@ -189,7 +205,11 @@ impl ActorType for Community { let id = format!("{}/remove/{}", self.actor_id, uuid::Uuid::new_v4()); let mut remove = Remove::default(); - populate_object_props(&mut remove.object_props, &self.get_followers_url(), &id)?; + populate_object_props( + &mut remove.object_props, + vec![self.get_followers_url()], + &id, + )?; remove .remove_props @@ -200,7 +220,11 @@ impl ActorType for Community { let undo_id = format!("{}/undo/remove/{}", self.actor_id, uuid::Uuid::new_v4()); let mut undo = Undo::default(); - populate_object_props(&mut undo.object_props, &self.get_followers_url(), &undo_id)?; + populate_object_props( + &mut undo.object_props, + vec![self.get_followers_url()], + &undo_id, + )?; undo .undo_props |