Add poll expiry, reminder mail and polls admin CLI
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:
1 parent
4caff47a09
commit
a19cd8339e
20 files changed
+976
-1
No files matched your search
@@ -49,6 +49,13 @@ return [
|
||||
// Answers (incl. word cloud entries and upvotes) per IP and minute; a whole audience may share one IP.
|
||||
'votesPerMinute' => (int)env('THROTTLE_VOTES_PER_MINUTE', 600),
|
||||
],
|
||||
// Polls are deleted this many days after their creation by `bin/cake polls cleanup` (cron).
|
||||
// 0 = never expire.
|
||||
'retention' => [
|
||||
'days' => (int)env('POLL_RETENTION_DAYS', 90),
|
||||
// The owner gets a reminder mail this many days before (0 = no reminder, must be < days).
|
||||
'reminderDays' => (int)env('POLL_REMINDER_DAYS', 14),
|
||||
],
|
||||
'pollIntervalMs' => (int)env('POLL_INTERVAL_MS', 2000),
|
||||
// Slide images (see \App\Service\ImageService): scaled and re-encoded as WebP, stored outside webroot.
|
||||
'images' => [
|
||||
|
||||
Reference in new issue
Block a user