Addressing a few comments.

This commit is contained in:
Dessalines 2020-10-08 12:38:44 -05:00
parent e9ce14069e
commit 7fbad900d7
2 changed files with 4 additions and 5 deletions

View file

@ -146,7 +146,6 @@ where
Kind: Serialize, Kind: Serialize,
<T as Extends<Kind>>::Error: From<serde_json::Error> + Send + Sync + 'static, <T as Extends<Kind>>::Error: From<serde_json::Error> + Send + Sync + 'static,
{ {
dbg!(&mentions, &activity.id_unchecked());
debug!( debug!(
"Sending mentions activity {:?} to {:?}", "Sending mentions activity {:?} to {:?}",
&activity.id_unchecked(), &activity.id_unchecked(),
@ -191,7 +190,7 @@ where
} }
for to_url in &to { 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()?; let activity = activity.into_any_base()?;

View file

@ -20,7 +20,7 @@ use lemmy_db::{
use lemmy_structs::blocking; use lemmy_structs::blocking;
use lemmy_utils::{location_info, LemmyError}; use lemmy_utils::{location_info, LemmyError};
use lemmy_websocket::LemmyContext; use lemmy_websocket::LemmyContext;
use log::debug; use log::info;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::fmt::Debug; use std::fmt::Debug;
@ -57,7 +57,7 @@ pub async fn community_inbox(
.into(), .into(),
); );
} }
debug!( info!(
"Community {} received activity {:?}", "Community {} received activity {:?}",
&community.name, &activity &community.name, &activity
); );
@ -65,7 +65,7 @@ pub async fn community_inbox(
.actor()? .actor()?
.as_single_xsd_any_uri() .as_single_xsd_any_uri()
.context(location_info!())?; .context(location_info!())?;
debug!( info!(
"Community {} inbox received activity {:?} from {}", "Community {} inbox received activity {:?} from {}",
community.name, community.name,
&activity.id_unchecked(), &activity.id_unchecked(),