Fix client duplicate creation.

add_user_agent
Dessalines 2021-09-29 11:21:07 -04:00
parent fe112f460d
commit cee7978e24
1 changed files with 1 additions and 1 deletions

View File

@ -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)?;
}