]> Untitled Git - lemmy.git/commitdiff
Addressing a few comments.
authorDessalines <tyhou13@gmx.com>
Thu, 8 Oct 2020 17:38:44 +0000 (12:38 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 8 Oct 2020 17:38:44 +0000 (12:38 -0500)
lemmy_apub/src/activity_queue.rs
lemmy_apub/src/inbox/community_inbox.rs

index a887eb93f5cdbf12452541fcaefe6614c453c1a7..988f1a477ecedcc3eecca981fab59bc28fb03038 100644 (file)
@@ -146,7 +146,6 @@ where
   Kind: Serialize,
   <T as Extends<Kind>>::Error: From<serde_json::Error> + 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()?;
index e4ee7b37521fad47e34be04df06b2a38c9354ab9..9ac589c70ecbfee5993e25ffa0eab889947d3eca 100644 (file)
@@ -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(),