From e766759b8c271faa28f0635756ace152ae6a6d5b Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:08:18 -0400 Subject: [PATCH 01/20] Fix scheduling bug (#693) * Fix scheduling bug * Fix comp err --- src/routes/v2/projects.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/routes/v2/projects.rs b/src/routes/v2/projects.rs index d7c82b35..d6e9d4f2 100644 --- a/src/routes/v2/projects.rs +++ b/src/routes/v2/projects.rs @@ -1596,6 +1596,18 @@ pub async fn project_schedule( )); } + if !project_item.inner.status.is_approved() { + return Err(ApiError::InvalidInput( + "This project has not been approved yet. Submit to the queue with the private status to schedule it in the future!".to_string(), + )); + } + + if project_item.inner.webhook_sent { + return Err(ApiError::InvalidInput( + "This project already has been published. It cannot be scheduled!".to_string(), + )); + } + sqlx::query!( " UPDATE mods From 6288f679b9b9c02e4b5313aefd7abc28415cd139 Mon Sep 17 00:00:00 2001 From: Modrinth Bot <106493074+modrinth-bot@users.noreply.github.com> Date: Sun, 10 Sep 2023 12:45:44 -0400 Subject: [PATCH 02/20] [no ci] synced file(s) with modrinth/.github (#706) --- .github/ISSUE_TEMPLATE/config.yml | 2 +- src/auth/email/auth_notif.html | 10 +++++----- src/auth/email/button_notif.html | 10 +++++----- src/auth/templates/error.html | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index c7955faa..454d8e6c 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,7 +2,7 @@ blank_issues_enabled: true contact_links: - name: Discord about: Ask questions on our Discord Server. - url: https://discord.gg/modrinth-734077874708938864 + url: https://discord.modrinth.com - name: Roadmap about: View our Roadmap. Please do not open issues for items on our roadmap. url: https://roadmap.modrinth.com diff --git a/src/auth/email/auth_notif.html b/src/auth/email/auth_notif.html index 9519dcd4..e367b2c8 100644 --- a/src/auth/email/auth_notif.html +++ b/src/auth/email/auth_notif.html @@ -113,14 +113,14 @@
-
Discord +
Discord
-
Twitter +
Twitter