mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-06-05 07:58:50 +00:00
Fix client duplicate creation.
This commit is contained in:
parent
fe112f460d
commit
cee7978e24
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ where
|
|||
private_key: actor.private_key().context(location_info!())?,
|
||||
};
|
||||
if env::var("LEMMY_TEST_SEND_SYNC").is_ok() {
|
||||
do_send(message, &Client::default()).await?;
|
||||
do_send(message, context.client()).await?;
|
||||
} else {
|
||||
context.activity_queue.queue::<SendActivityTask>(message)?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue