mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 00:14:03 +00:00
Addressing a few comments.
This commit is contained in:
parent
e9ce14069e
commit
7fbad900d7
2 changed files with 4 additions and 5 deletions
|
@ -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()?;
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue