From: Dessalines Date: Tue, 28 Apr 2020 13:57:28 +0000 (-0400) Subject: Removing some comments. X-Git-Url: http://these/git/%7B%60%24%7BarchiveUrl%7D/static/%7B%60%24%7BarchiveTodayUrl%7D?a=commitdiff_plain;h=07a9d84ed08d85847ebe15fa68e20a2763508046;p=lemmy.git Removing some comments. --- diff --git a/server/src/apub/comment.rs b/server/src/apub/comment.rs index 3b7c0dfe..3b647fa3 100644 --- a/server/src/apub/comment.rs +++ b/server/src/apub/comment.rs @@ -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)? diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index 36f26e4b..373fa8da 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -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. diff --git a/ui/src/api_tests/api.spec.ts b/ui/src/api_tests/api.spec.ts index 49fd0878..783ce709 100644 --- a/ui/src/api_tests/api.spec.ts +++ b/ui/src/api_tests/api.spec.ts @@ -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,