Sheetal - reddit auto poster backend#1928
Open
sheetalmangate wants to merge 5 commits intodevelopmentfrom
Open
Sheetal - reddit auto poster backend#1928sheetalmangate wants to merge 5 commits intodevelopmentfrom
sheetalmangate wants to merge 5 commits intodevelopmentfrom
Conversation
|
|
||
| const post = await RedditPost.findById(id); | ||
| if (!post) { | ||
| return res.status(204).json({ |
Contributor
There was a problem hiding this comment.
204 means "No Content" and browsers/clients will ignore the body entirely. Should be 404
| }, index * 1000); | ||
| }); | ||
|
|
||
| return res.status(200).json({ |
Contributor
There was a problem hiding this comment.
Results will always be [] when the response is sent. The forEach + setTimeout approach means the response is sent back immediately with empty results, before any posts are actually submitted. The async work inside setTimeout is never awaited. Use Promises here.
Contributor
|
I have tested this PR locally, also posted comments and screenshots on the frontend for PR #4478. |
This was referenced Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements the frontend interface for the Reddit Auto Poster feature. This update adds a basic UI for creating Reddit text and link posts, scheduling posts for future publication, and managing scheduled jobs (view and cancel). The component is currently placed under the Announcements section for testing purposes. This feature is not yet styled for production and is intended for internal review and testing only.
Related PRS (if any):
This frontend PR is related to the #4478 frontend PR.
To test this backend PR you need to checkout the #4478 frontend PR.
…
Main changes explained:
-- Added Reddit tab under Announcement. To access Announcement go to option Other Links -> Send Emails.
-- Reddit Auto poster provides UI for 1) Submitting text or link post to Reddit 2) Schedule Reddit posts.
-- Schedule Reddit post provides the ability to create and/or upload content used to schedule posts 6 months in advance.
-- Post History display the list of all scheduled posts those are submitted.
-- Create Reddit App : use below URL to create reddit app and use your CLIENT_ID and CLIENT_SECRET.
https://www.reddit.com/prefs/apps
-- While creating app in reddit use below link as redirect url
http://localhost:5173/announcements/platforms/reddit/redirect
…
How to test:
Screenshots or videos of changes:
Autoposter_work_flow.mp4