From: Dessalines Date: Thu, 8 Oct 2020 17:38:44 +0000 (-0500) Subject: Addressing a few comments. X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7BcommunityRss%7D?a=commitdiff_plain;h=7fbad900d7ef5d77cf62f02d8ebd61f963abd342;p=lemmy.git Addressing a few comments. --- diff --git a/lemmy_apub/src/activity_queue.rs b/lemmy_apub/src/activity_queue.rs index a887eb93..988f1a47 100644 --- a/lemmy_apub/src/activity_queue.rs +++ b/lemmy_apub/src/activity_queue.rs @@ -146,7 +146,6 @@ where Kind: Serialize, >::Error: From + Send + Sync + 'static, { - dbg!(&mentions, &activity.id_unchecked()); debug!( "Sending mentions activity {:?} to {:?}", &activity.id_unchecked(), @@ -191,7 +190,7 @@ where } for to_url in &to { - assert!(check_is_apub_id_valid(&to_url).is_ok()); + check_is_apub_id_valid(&to_url)?; } let activity = activity.into_any_base()?; diff --git a/lemmy_apub/src/inbox/community_inbox.rs b/lemmy_apub/src/inbox/community_inbox.rs index e4ee7b37..9ac589c7 100644 --- a/lemmy_apub/src/inbox/community_inbox.rs +++ b/lemmy_apub/src/inbox/community_inbox.rs @@ -20,7 +20,7 @@ use lemmy_db::{ use lemmy_structs::blocking; use lemmy_utils::{location_info, LemmyError}; use lemmy_websocket::LemmyContext; -use log::debug; +use log::info; use serde::{Deserialize, Serialize}; use std::fmt::Debug; @@ -57,7 +57,7 @@ pub async fn community_inbox( .into(), ); } - debug!( + info!( "Community {} received activity {:?}", &community.name, &activity ); @@ -65,7 +65,7 @@ pub async fn community_inbox( .actor()? .as_single_xsd_any_uri() .context(location_info!())?; - debug!( + info!( "Community {} inbox received activity {:?} from {}", community.name, &activity.id_unchecked(),