aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/cron.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/cron.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/cron.rs b/src/commands/cron.rs
index ebaa96d..301ae3d 100644
--- a/src/commands/cron.rs
+++ b/src/commands/cron.rs
@@ -45,6 +45,9 @@ pub async fn dodaj_audio(
45 }; 45 };
46 46
47 let guild_id = ctx.guild_id().ok_or_else(lang::err_not_in_guild)?; 47 let guild_id = ctx.guild_id().ok_or_else(lang::err_not_in_guild)?;
48 if !ctx.data().copyparty.is_own_url(&full_url) {
49 crate::net::ensure_public_http_url(&full_url).await?;
50 }
48 database::add_cron_job( 51 database::add_cron_job(
49 &ctx.data().db_pool, 52 &ctx.data().db_pool,
50 guild_id.get() as i64, 53 guild_id.get() as i64,