]> Untitled Git - lemmy.git/commitdiff
Some additional notes, reorg.
authorDessalines <tyhou13@gmx.com>
Sun, 3 May 2020 14:22:25 +0000 (10:22 -0400)
committerDessalines <tyhou13@gmx.com>
Sun, 3 May 2020 14:22:25 +0000 (10:22 -0400)
server/src/apub/comment.rs
server/src/apub/community.rs
server/src/apub/mod.rs
server/src/apub/post.rs

index 65dd3c19a955aec4eba7d87ea61803ddddd10499..823b9d6ae387d078e7d761781c10d41354039e15 100644 (file)
@@ -223,6 +223,7 @@ impl ApubObjectType for Comment {
       .set_actor_xsd_any_uri(creator.actor_id.to_owned())?
       .set_object_base_box(note)?;
 
+    // TODO
     // Undo that fake activity
     let undo_id = format!("{}/undo/delete/{}", self.ap_id, uuid::Uuid::new_v4());
     let mut undo = Undo::default();
index c4d9bf839c4c37e4294b43fdd843d6da47f934fa..3a1dccb277dc1bd8cc11d33f5b38a1f3340b3689 100644 (file)
@@ -1,5 +1,4 @@
 use super::*;
-use activitystreams::actor::kind::GroupType;
 
 #[derive(Deserialize)]
 pub struct CommunityQuery {
@@ -149,6 +148,7 @@ impl ActorType for Community {
       .set_actor_xsd_any_uri(creator.actor_id.to_owned())?
       .set_object_base_box(group)?;
 
+    // TODO
     // Undo that fake activity
     let undo_id = format!("{}/undo/delete/{}", self.actor_id, uuid::Uuid::new_v4());
     let mut undo = Undo::default();
index 1d86050251cb6ed934d11859253b67aad5f5ba03..5b65411a34521fa93921a783234ce29122fea132 100644 (file)
@@ -14,7 +14,7 @@ use crate::websocket::server::SendCommunityRoomMessage;
 use activitystreams::object::kind::{NoteType, PageType};
 use activitystreams::{
   activity::{Accept, Create, Delete, Dislike, Follow, Like, Undo, Update},
-  actor::{properties::ApActorProperties, Actor, Group, Person},
+  actor::{kind::GroupType, properties::ApActorProperties, Actor, Group, Person},
   collection::UnorderedCollection,
   context,
   endpoint::EndpointProperties,
@@ -158,6 +158,7 @@ pub trait ToApub {
   fn to_tombstone(&self) -> Result<Tombstone, Error>;
 }
 
+/// Updated is actually the deletion time
 fn create_tombstone(
   deleted: bool,
   object_id: &str,
index 5a7383c0e87584367d0467df6d0bcfcd4cba3f6d..c01283fccc21aa3ba1840fbe19b2a305cf8f5d39 100644 (file)
@@ -230,6 +230,7 @@ impl ApubObjectType for Post {
       .set_actor_xsd_any_uri(creator.actor_id.to_owned())?
       .set_object_base_box(page)?;
 
+    // TODO
     // Undo that fake activity
     let undo_id = format!("{}/undo/delete/{}", self.ap_id, uuid::Uuid::new_v4());
     let mut undo = Undo::default();