mirror of https://github.com/LemmyNet/lemmy.git
parent
0a60bcb8ee
commit
74bc1198ce
|
@ -167,6 +167,9 @@ where
|
||||||
ActorT: Actor + ActorType,
|
ActorT: Actor + ActorType,
|
||||||
Activity: ActivityHandler<Error = LemmyError>,
|
Activity: ActivityHandler<Error = LemmyError>,
|
||||||
{
|
{
|
||||||
|
if !context.settings().federation.enabled {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
info!("Sending activity {}", activity.id().to_string());
|
info!("Sending activity {}", activity.id().to_string());
|
||||||
let activity = WithContext::new(activity, CONTEXT.deref().clone());
|
let activity = WithContext::new(activity, CONTEXT.deref().clone());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue