From 63b3f096e91c75e83ee10807edcf75ad52e765c3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 25 Sep 2021 12:04:43 -0400 Subject: [PATCH] Fix one mixup in rebase. --- crates/apub/src/activities/comment/mod.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/apub/src/activities/comment/mod.rs b/crates/apub/src/activities/comment/mod.rs index 58524cb5f..9e91d2f1b 100644 --- a/crates/apub/src/activities/comment/mod.rs +++ b/crates/apub/src/activities/comment/mod.rs @@ -82,13 +82,7 @@ pub async fn collect_non_local_mentions( for mention in &mentions { // TODO should it be fetching it every time? - if let Ok(actor_id) = fetch_webfinger_url( - mention, - context.client(), - context.settings().get_protocol_string(), - ) - .await - { + if let Ok(actor_id) = fetch_webfinger_url(mention, context).await { let actor_id: ObjectId = ObjectId::new(actor_id); debug!("mention actor_id: {}", actor_id); addressed_ccs.push(actor_id.to_owned().to_string().parse()?);