postiz-app/libraries
Santosh Bhandari 00b59ec2f4
Some checks failed
Build / build (22.12.0) (push) Has been cancelled
fix: validate MCP attachment formats and align media allowlist
Reject non-mp4 / non-image attachment URLs in the MCP
integrationSchedulePostTool (previously accepted any URL). Introduce
a single ALLOWED_POST_MEDIA source of truth in helpers/has.extension
and derive VALID_POST_MEDIA_EXTENSIONS + VALID_POST_MEDIA_MIME_TYPES
from it, replacing duplicated constants in the file upload pipe, the
public-api URL upload controller, and the ValidUrlExtension DTO
validator. Error messages now consistently list the allowed
extensions across the public API and MCP.
2026-05-19 13:56:09 +05:45
..
helpers/src fix: validate MCP attachment formats and align media allowlist 2026-05-19 13:56:09 +05:45
nestjs-libraries fix: validate MCP attachment formats and align media allowlist 2026-05-19 13:56:09 +05:45
react-shared-libraries feat: tracking 2026-05-14 18:10:01 +07:00