From 7fbad900d7ef5d77cf62f02d8ebd61f963abd342 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 8 Oct 2020 12:38:44 -0500 Subject: [PATCH] Addressing a few comments. --- lemmy_apub/src/activity_queue.rs | 3 +-- lemmy_apub/src/inbox/community_inbox.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lemmy_apub/src/activity_queue.rs b/lemmy_apub/src/activity_queue.rs index a887eb93f..988f1a477 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 e4ee7b375..9ac589c70 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(),