Portal 1.4.0
v1.4.0
Added
- What's New (
/pt-BR/novidadesand/en/whats-new): Standalone news articles, each with its own dedicated page. The homepage displays summaries of the three latest articles, and the RSS feed (/feed.xml) now features news articles. - Release Notes (
/pt-BR/release-notesand/en/release-notes) and Change Log (/pt-BR/changelogand/en/changelog): Version histories for the Umanthir API and Portal, with product-based filtering. English is the default language, and each version includes content in both English and Portuguese. - Admin:
- News editor;
- Version editor now supports product selection (API or Portal) and release notes;
- Live preview alongside each field and a Markdown guide.
- Markdown: Support for numbered lists, asterisk (
*) bullet lists, nested lists, and GitHub-flavored Markdown tables. - Images in news articles and version entries:
- Upload PNG, JPEG, and GIF files directly through the editor, up to 10 MB each. Metadata (including EXIF GPS data and other information) is stripped. Files are stored in Cloudflare R2 and served through
https://media.umanthir.com; - External images are restricted to
www.tibiawiki.com.brandstatic.tibia.com.
- Upload PNG, JPEG, and GIF files directly through the editor, up to 10 MB each. Metadata (including EXIF GPS data and other information) is stripped. Files are stored in Cloudflare R2 and served through
- Video embeds from YouTube (
youtube-nocookie.com), Vimeo, Twitch, and TikTok: A standalone video URL on its own line is automatically converted into an embedded player, which only loads when the visitor clicks it. - Backend:
- New routes:
/portal-api/v1/news,/portal-api/v1/media/*, and/portal-api/v1/admin/{news,media}, withnews.*andmedia.*audit events; changelognow supportsproductandwith_notesparameters.
- New routes:
Changed
- **
/pt-BR/notas-de-versao** now redirects to/pt-BR/release-notes.
Fixed
- A line containing only
##caused the editor preview to freeze due to an infinite loop in the renderer. - An asterisk (
*) within a link URL was incorrectly interpreted as emphasis inside thehrefattribute.
Security
- Content Security Policy (CSP):
img-srconly allowsmedia.umanthir.com,static.tibia.com, and TibiaWiki as external image sources.frame-srconly allows the five authorized video player sources. None of these hosts are added to the script, style, or connection directives. - Public Media: Served with
nosniffandCSP default-src 'none'. Uploaded files have their content types validated against their actual content.