mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-19 05:07:08 +02:00
Improve social media posting with enhanced photo and carousel support
Update Facebook Graph API integration to support multi-photo carousels and refine Instagram Graph API implementation for single media posts, while also removing debug logging from the posts API route. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/hAPGvGl
This commit is contained in:
1 parent
7a13b67876
commit
81d721e339
2 files changed
+2
-11
No files matched your search
@@ -559,13 +559,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
const userId = user.id;
|
||||
const { pageIds, postType, mediaId, mediaIds, ...postFields } = req.body;
|
||||
|
||||
console.log('[POST /api/posts] Received data:', {
|
||||
mediaIds,
|
||||
mediaId,
|
||||
mediaIdsType: Array.isArray(mediaIds) ? 'array' : typeof mediaIds,
|
||||
mediaIdsLength: Array.isArray(mediaIds) ? mediaIds.length : 'N/A'
|
||||
});
|
||||
|
||||
// Convert mediaIds to standardized format: array of { mediaId, displayOrder }
|
||||
let finalMediaItems: Array<{ mediaId: string; displayOrder: number }> = [];
|
||||
|
||||
@@ -615,7 +608,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
mediaId: item.mediaId,
|
||||
displayOrder: item.displayOrder,
|
||||
}));
|
||||
console.log('[POST /api/posts] Inserting post_media:', postMediaValues);
|
||||
await db.insert(postMedia).values(postMediaValues);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user