From: Nutomic Date: Mon, 17 Oct 2022 18:29:18 +0000 (+0000) Subject: Dont try to send activities if federation is disabled (fixes #2499) (#2500) X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/%22%7Burl%7D/static/%7BlocalRss%7D?a=commitdiff_plain;h=74bc1198cecc2489728e45cb0390aede52623f2e;p=lemmy.git Dont try to send activities if federation is disabled (fixes #2499) (#2500) --- 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());