Skip to content

Conversation

@apoorvajainrp21
Copy link

Summary

Added Truth Social auto-poster backend with proxy endpoint to avoid CORS issues.

Changes

  • truthSocialPostController.js - Proxy endpoint to post to Truth Social, verify token, history and scheduling
  • truthSocialRouter.js - Routes for all Truth Social endpoints
  • truthSocialScheduledPost.js - MongoDB model for scheduled posts
  • truthSocialPostHistory.js - MongoDB model for post history

Endpoints

  • POST /api/truthsocial/post - Proxy post to Truth Social (avoids CORS)
  • POST /api/truthsocial/verify - Verify token
  • POST /api/truthsocial/history - Save to history
  • GET /api/truthsocial/history - Get post history
  • POST /api/truthsocial/schedule - Schedule a post
  • GET /api/truthsocial/schedule - Get scheduled posts
  • DELETE /api/truthsocial/schedule/:id - Delete scheduled post
  • PUT /api/truthsocial/schedule/:id - Update scheduled post

Note

Auto-posting is not supported due to Truth Social's Cloudflare protection. Scheduled posts must be manually posted via "Post Now" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants