Forums Feature Requests Thread

[Enhancement] Cross-cutting infra: Orphaned email template: system-announcement.php (never sent)

Patrick Bass · Jun 6 · 15 · 1 Locked
[Normal Priority] [Feature Enhancement] [Deployed to Production]
🚀 OP Jun 6, 2026 8:05pm

Area: Cross-cutting infra (audit p14) · Surface: platform/templates/email/system-announcement.php · Dimension: deadcode · Severity: minor

templates/email/system-announcement.php is never passed to MailService::send(). It is a 415-byte stub template with no caller.

Evidence

Zero inbound references. `$ grep -rnE "'system-announcement'|\"system-announcement\"" src/ bin/ public/ --include=*.php` → (empty). The only 'system-announcement' hit anywhere is an unrelated forum-slug list in ForumController.php:1313 ('system-announcements', plural, a forum slug — not the email template).

Suggested fix. Delete templates/email/system-announcement.php, or wire it into a broadcast/announcement email path if system-announcement emails are intended.

Filed by the automated tenant-app audit and adversarially evidence-verified. Status: verified. Open — not yet actioned.


Patrick Bass
@mobieus

🚀 Jun 7, 2026 10:24am

Resolved and deployed. Commit ca230723ea.

templates/email/system-announcement.php deleted — zero inbound MailService send() references.

Closed as: shipped.


Patrick Bass
@mobieus

Log in or register to reply to this thread.