mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 05:01:32 +00:00
Dont try to send activities if federation is disabled (fixes #2499)
This commit is contained in:
parent
0a60bcb8ee
commit
497fe63dd9
|
@ -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