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,
<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()?;

View 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(),