Federate scheduled posts
Open, NormalPublic



Right now, scheduled posts simply show up on blogs when their created date is in the past. We should also send them out to the fediverse once their scheduled date has passed.


If federation is enabled on an instance, upon application startup (or once federation is enabled while application is running):

  • Check database for all future posts
  • Store them in memory

At a regular interval:

  • Check stored list of posts, see if any dates are now in the past
    • If so, federate post and remove it from the list
  • Check database for all future posts
  • Store them in memory


Depending on database size, the future posts check could be kind of heavy. Maybe as the database grows we increase the interval between checks.

If the interval is 1 minute, maybe upon startup we choose a random second of every minute to run the check on (or we just rely on the fact that the application will start up at different times).


Restricted Diffusion Commit

Related Objects


Event Timeline

matt created this task.Thu, Feb 28, 1:27 PM
matt added a parent task: Restricted Maniphest Task.Thu, Mar 14, 6:27 PM
matt added a commit: Restricted Diffusion Commit.Wed, Mar 20, 9:39 PM