Remove old debug logging

This commit is contained in:
Shadowfacts 2023-01-03 14:16:14 -05:00
parent 3b88b82584
commit bd43ad69d8
3 changed files with 1 additions and 8 deletions

View File

@ -67,9 +67,7 @@ pub async fn handle(request: &Request<Body>) -> Option<impl IntoResponse> {
match best {
Some(t) if t == &*AP_JSON || t == &*LD_JSON || *t == mime::APPLICATION_JSON => {
let pool = request.extensions().get::<SqlitePool>().unwrap();
if let Some(article_json) =
dbg!(db::get_article_for_path(request.uri().path(), pool).await)
{
if let Some(article_json) = db::get_article_for_path(request.uri().path(), pool).await {
let headers = [("Content-Type", best.unwrap().to_string())];
Some((headers, article_json).into_response())
} else {

View File

@ -47,21 +47,18 @@ pub async fn add_cached_actor(actor: &ActorExt, pool: &SqlitePool) -> anyhow::Re
.ok_or_else(|| anyhow!("missing actor id"))?;
debug!("adding cached actor {:?}", id);
let actor_json = serde_json::to_string(&actor)?;
dbg!(actor.preferred_username());
let mut display_name = actor
.name()
.and_then(|names| names.as_single_xsd_string().map(|s| s.to_owned()));
if display_name.as_ref().map_or(true, |s| s.is_empty()) {
display_name = actor.preferred_username().map(|s| s.to_owned());
}
dbg!(&display_name);
let shared_inbox = actor
.endpoints()?
.and_then(|endpoints| endpoints.shared_inbox)
.map(|s| s.as_str());
let inbox = actor.inbox()?.as_str();
// jesus christ this is ridiculously elaborate
dbg!(actor.icon());
let icon = actor
.icon()
.and_then(|icon| icon.as_one())

View File

@ -134,8 +134,6 @@ async fn verify_signature(
.ok_or(VerifySigError::MissingActorId)?
.as_str();
dbg!(force_refetch_actor);
dbg!(actor_id);
let actor = if force_refetch_actor {
super::fetch_actor(actor_id, pool).await
} else {