View Code? Open in Web Editor
NEW
A Devvit app to automatically lock a post after a period of time has elapsed
Home Page: https://developers.reddit.com/apps/auto-post-lock
License: BSD 3-Clause "New" or "Revised" License
auto-post-lock's People
Contributors
Watchers
auto-post-lock's Issues
Toggle in settings, if set (and look back hasn't run before) the last 1000 posts will be added to the working list.
E.g. "at least 1000 items" due to Listing limitations
This is dependent on repeating groups in settings.
Reduce regular cadence to every 30 minutes.
In the job, check for the first post in the queue, and schedule an ad-hoc task run for a few seconds after it is due, but only if
- it is due before the next scheduled run, and
- the next scheduled run isn't very close to that calculated time (e.g. within 30 seconds).