1.8 KiB
Existing newsroom formatting — ticket 407
The existing Imperial Newsroom keeps its register, optimistic article versions, draft storage, authorship, publication permissions and delivery outboxes. Its editor adds bold, italic, code, heading, bullet and numbered-list controls, plus labelled HTTPS links and asset images with required alt text. Saving a draft does not publish it. The existing publication confirmation remains required.
website/web/news-format.mjs is the shared bounded grammar. Node article pages,
browser article pages and editorial preview use the same HTML renderer. HTML is
escaped, links require HTTPS without embedded credentials, and image sources are
restricted to PNG/WebP/JPEG files beneath the public DuneRealms assets path. The
save API validates content independently of the browser. Existing plain articles
and approved local MP4 embeds remain supported.
The same grammar produces plain Discord summaries and escaped native MyBB
formatting. Forum payload version 3 includes the server-generated body_bbcode
inside the existing immutable delivery revision; browser article inputs cannot
supply it. The native CLI helper retains version-2 handling for old workers and
all existing source-marker, locking, author, first-post and revision protections.
Install the reviewed integrations/mybb/forum-news.php at the existing native
/home/dunerealms/apps/integrations/forum-news.php before restarting news delivery.
This does not introduce a second publisher or outbox.
No live test article or public notification is required to validate the parser. Focused fixtures cover draft/publication rights, hostile content, equivalent HTML/BBCode/plain output and unchanged once-only delivery behavior. The other keygen audit work in ticket 407 remains separate; editor publication alone is not sufficient to close that complete ticket.

Staff