From 1172aa5ceb3b3c265fa8f83e31490e6a6407c905 Mon Sep 17 00:00:00 2001 From: tf4fun <87866264+tf4fun@users.noreply.github.com> Date: Sat, 21 Mar 2026 17:14:30 +0800 Subject: [PATCH] fix(cron): add qq to supported delivery channel whitelist (#4120) The channel validation in `validate_announce_delivery` was missing `qq`, causing API-created cron jobs with QQ delivery to be rejected. Co-authored-by: Claude Opus 4.6 (1M context) --- src/cron/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cron/mod.rs b/src/cron/mod.rs index 7e389a7aa..2eb514517 100644 --- a/src/cron/mod.rs +++ b/src/cron/mod.rs @@ -62,7 +62,7 @@ pub(crate) fn validate_delivery_config(delivery: Option<&DeliveryConfig>) -> Res bail!("delivery.channel is required for announce mode"); }; match channel.to_ascii_lowercase().as_str() { - "telegram" | "discord" | "slack" | "mattermost" | "signal" | "matrix" => {} + "telegram" | "discord" | "slack" | "mattermost" | "signal" | "matrix" | "qq" => {} other => bail!("unsupported delivery channel: {other}"), }