Minor Labrinth documentation and missing Sendy configuration handling tweaks (#3667)

* docs(contributing/labrinth): mention SMTP vars, add helpful Redis note

* chore(labrinth): short-circuit Sendy usage successfully when not setup

* chore: get rid of deprecated `docker-compose` version parameter
This commit is contained in:
Alejandro González
2025-05-18 13:36:05 +02:00
committed by GitHub
parent e4f0dddf82
commit ea9a3539eb
3 changed files with 14 additions and 1 deletions

View File

@@ -1296,6 +1296,11 @@ pub async fn sign_up_sendy(email: &str) -> Result<(), AuthenticationError> {
let api_key = dotenvy::var("SENDY_API_KEY")?;
let site_url = dotenvy::var("SITE_URL")?;
if url.is_empty() || url == "none" {
tracing::info!("Sendy URL not set, skipping signup");
return Ok(());
}
let mut form = HashMap::new();
form.insert("api_key", &*api_key);