Add poll expiry, reminder mail and polls admin CLI
CI / Deploy / PHP 8.4 (push) Successful in 1m57s
CI / Deploy / PHP 8.5 (push) Successful in 2m9s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Polls are deleted POLL_RETENTION_DAYS (default 90) after creation by the
cron job `bin/cake polls cleanup`. POLL_REMINDER_DAYS (default 14) before
that the owner gets a one-time reminder mail (expiry_reminded_at).

New commands: polls list, show (admin link only with --link), delete,
remind, cleanup. The expiry date is shown in the creation mail and the
dashboard. Docs: README, AGENTS.md, .env.example.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 12:46:12 +01:00
1 parent 4caff47a09
commit a19cd8339e
20 files changed
+976 -1

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ THROTTLE_CREATE_PER_HOUR=10
THROTTLE_RECOVER_PER_HOUR=5
# Max. answers per IP and minute (0 = unlimited). Keep it high: a whole audience may share one Wi-Fi/IP.
THROTTLE_VOTES_PER_MINUTE=600
# Polls are deleted this many days after their creation by the cron job `bin/cake polls cleanup`
# (0 = never expire). The owner gets a reminder mail POLL_REMINDER_DAYS before (0 = no reminder).
POLL_RETENTION_DAYS=90
POLL_REMINDER_DAYS=14
# How often presenter and participant pages poll for updates (ms)
POLL_INTERVAL_MS=2000
# Slide images: directory (default data/uploads; in containers e.g. /data/uploads), largest upload in MB