This commit is contained in:
parent
0a60bcb8ee
commit
74bc1198ce
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue