]> Untitled Git - lemmy.git/commitdiff
Removing some comments.
authorDessalines <tyhou13@gmx.com>
Tue, 28 Apr 2020 13:57:28 +0000 (09:57 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 28 Apr 2020 13:57:28 +0000 (09:57 -0400)
server/src/apub/comment.rs
server/src/apub/mod.rs
ui/src/api_tests/api.spec.ts

index 3b7c0dfe0ec657a4864dfdcda919f79d3b46c87f..3b647fa322c425f3318a01d1e6245297d8de404f 100644 (file)
@@ -23,9 +23,6 @@ impl ToApub for Comment {
       // Not needed when the Post is embedded in a collection (like for community outbox)
       .set_context_xsd_any_uri(context())?
       .set_id(self.ap_id.to_owned())?
-      // Use summary field to be consistent with mastodon content warning.
-      // https://mastodon.xyz/@Louisa/103987265222901387.json
-      // .set_summary_xsd_string(self.name.to_owned())?
       .set_published(convert_datetime(self.published))?
       .set_to_xsd_any_uri(community.actor_id)?
       .set_many_in_reply_to_xsd_any_uris(in_reply_to_vec)?
index 36f26e4b063bb0217c4aef3c39fa9efbe94a012e..373fa8da0d249899e38426cccab403bbb6038de9 100644 (file)
@@ -179,12 +179,12 @@ pub trait ActorType {
   // and a user can't be followed (yet)
   #[allow(unused_variables)]
   fn send_follow(&self, follow_actor_id: &str) -> Result<(), Error> {
-    Ok(())
+    Err(format_err!("Follow not implemented."))
   }
 
   #[allow(unused_variables)]
   fn send_accept_follow(&self, follow: &Follow) -> Result<(), Error> {
-    Ok(())
+    Err(format_err!("Accept not implemented."))
   }
 
   // TODO default because there is no user following yet.
index 49fd08782a825d680267d45d6eb7077240097531..783ce709d95e0251e8db409ff536ff6b6020ad3b 100644 (file)
@@ -102,8 +102,6 @@ describe('main', () => {
 
       expect(searchResponse.communities[0].name).toBe('main');
 
-      // TODO
-      // Unfortunately the search is correctly
       let followForm: FollowCommunityForm = {
         community_id: searchResponse.communities[0].id,
         follow: true,