mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
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,
|
||||
Activity: ActivityHandler<Error = LemmyError>,
|
||||
{
|
||||
if !context.settings().federation.enabled {
|
||||
return Ok(());
|
||||
}
|
||||
info!("Sending activity {}", activity.id().to_string());
|
||||
let activity = WithContext::new(activity, CONTEXT.deref().clone());
|
||||
|
||||
|
|
Loading…
Reference in a new issue