summaryrefslogtreecommitdiffstats
path: root/server/src/apub/post.rs
diff options
context:
space:
mode:
authorDessalines <dessalines@users.noreply.github.com>2020-05-15 12:36:11 -0400
committerGitHub <noreply@github.com>2020-05-15 12:36:11 -0400
commit940dc73f280742e553395d6a56eaca015a234b3a (patch)
treee81748decb1dc10d1ace2ad6318a94d063ccf23c /server/src/apub/post.rs
parent3a4973ad68562f9ccb4a9f4442333e0478bc7b04 (diff)
Federated mentions. Fixes #681 (#717)
* Federated mentions. Fixes #681 * Changing some todos, adding comments.
Diffstat (limited to 'server/src/apub/post.rs')
-rw-r--r--server/src/apub/post.rs32
1 files changed, 20 insertions, 12 deletions
diff --git a/server/src/apub/post.rs b/server/src/apub/post.rs
index b2374ffd..3ea2040d 100644
--- a/server/src/apub/post.rs
+++ b/server/src/apub/post.rs
@@ -124,7 +124,7 @@ impl ApubObjectType for Post {
let mut create = Create::new();
populate_object_props(
&mut create.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
create
@@ -147,7 +147,7 @@ impl ApubObjectType for Post {
let mut update = Update::new();
populate_object_props(
&mut update.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
update
@@ -169,7 +169,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut delete.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
@@ -193,7 +193,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut delete.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
@@ -209,7 +209,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut undo.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&undo_id,
)?;
@@ -233,7 +233,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut remove.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
@@ -256,7 +256,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut remove.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
@@ -271,7 +271,7 @@ impl ApubObjectType for Post {
populate_object_props(
&mut undo.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&undo_id,
)?;
@@ -295,7 +295,11 @@ impl ApubLikeableType for Post {
let id = format!("{}/like/{}", self.ap_id, uuid::Uuid::new_v4());
let mut like = Like::new();
- populate_object_props(&mut like.object_props, &community.get_followers_url(), &id)?;
+ populate_object_props(
+ &mut like.object_props,
+ vec![community.get_followers_url()],
+ &id,
+ )?;
like
.like_props
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
@@ -315,7 +319,7 @@ impl ApubLikeableType for Post {
let mut dislike = Dislike::new();
populate_object_props(
&mut dislike.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&id,
)?;
dislike
@@ -335,7 +339,11 @@ impl ApubLikeableType for Post {
let id = format!("{}/like/{}", self.ap_id, uuid::Uuid::new_v4());
let mut like = Like::new();
- populate_object_props(&mut like.object_props, &community.get_followers_url(), &id)?;
+ populate_object_props(
+ &mut like.object_props,
+ vec![community.get_followers_url()],
+ &id,
+ )?;
like
.like_props
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
@@ -348,7 +356,7 @@ impl ApubLikeableType for Post {
populate_object_props(
&mut undo.object_props,
- &community.get_followers_url(),
+ vec![community.get_followers_url()],
&undo_id,
)?;