Update post creation to support multiple media items and carousels

Refactor post creation logic in `server/routes.ts` to handle an array of media items (`mediaIds`) for posts, supporting both single media and carousel formats. Implement validation for a maximum of 10 media items and ensure stories have at least one media. Modify `server/storage.ts` to order media by `displayOrder` when retrieving post media.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/WzkpF6q
This commit is contained in:
michaelschal committed 2025-10-08 20:07:12 +00:00
1 parent b2df4ee031
commit 3d4ceaa5d8
3 files changed
+44 -10

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ externalPort = 3003
localPort = 35357
externalPort = 3002
[[ports]]
localPort = 35903
externalPort = 6800
[[ports]]
localPort = 37431
externalPort = 5000