From 74bc1198cecc2489728e45cb0390aede52623f2e Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 17 Oct 2022 18:29:18 +0000 Subject: [PATCH] Dont try to send activities if federation is disabled (fixes #2499) (#2500) --- crates/apub/src/activities/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/apub/src/activities/mod.rs b/crates/apub/src/activities/mod.rs index d3400705..8205967f 100644 --- a/crates/apub/src/activities/mod.rs +++ b/crates/apub/src/activities/mod.rs @@ -167,6 +167,9 @@ where ActorT: Actor + ActorType, Activity: ActivityHandler, { + if !context.settings().federation.enabled { + return Ok(()); + } info!("Sending activity {}", activity.id().to_string()); let activity = WithContext::new(activity, CONTEXT.deref().clone()); -- 2.44.1