Merge branch 'main' into feat/password-reset
All checks were successful
PR Checks / server-tests (pull_request) Successful in 9m59s
PR Checks / client-build (pull_request) Successful in 9m26s
PR Checks / bot-install (pull_request) Successful in 9m31s

This commit is contained in:
2026-07-19 09:04:43 +00:00
23 changed files with 3083 additions and 8 deletions

View File

@@ -61,4 +61,15 @@ function announce({ title, excerpt, url, imageUrl }) {
return call('/internal/announce', { method: 'POST', body: { title, excerpt, url, imageUrl } })
}
module.exports = { pushConfig, getStatus, announce }
// Site -> bot: an approved appeal wants the underlying Discord action reversed
// (unban for a 'ban', clear the timeout for a 'mute'). Best-effort like every
// call here — never throws, so an approved appeal still resolves when the bot is
// down (the caller records reversal_status='failed' from `ok:false`).
function reverseModAction({ discordUserId, actionType, appealId }) {
return call('/internal/mod-reverse', {
method: 'POST',
body: { discord_user_id: discordUserId, action_type: actionType, appeal_id: appealId },
})
}
module.exports = { pushConfig, getStatus, announce, reverseModAction }