summaryrefslogtreecommitdiffstats
path: root/server/src/apub/community.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-04-28 00:16:02 -0400
committerDessalines <tyhou13@gmx.com>2020-04-28 00:16:02 -0400
commit3b62f58dd2ee8dc9e3d5fec15a48df052f164deb (patch)
treef27be37eac62da270fb3ff1d18bb2e7847acd1de /server/src/apub/community.rs
parent6eaa06ab02a20c359b88a8c6a36ca3c668761825 (diff)
Adding federated post and comment likes.
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r--server/src/apub/community.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs
index f5e4f44d..46bd9024 100644
--- a/server/src/apub/community.rs
+++ b/server/src/apub/community.rs
@@ -63,11 +63,9 @@ impl ActorType for Community {
.get_actor_xsd_any_uri()
.unwrap()
.to_string();
+ let id = format!("{}/accept/{}", self.actor_id, uuid::Uuid::new_v4());
let mut accept = Accept::new();
- // TODO using a fake accept id
- let id = format!("{}/accept/{}", self.actor_id, uuid::Uuid::new_v4());
- //follow
accept
.object_props
.set_context_xsd_any_uri(context())?