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
rWF4af9fa66aa10: Don't federate scheduled posts upon claiming
Restricted Diffusion Commit

Related Objects


Event Timeline

matt created this task.Feb 28 2019, 1:27 PM
matt added a parent task: Restricted Maniphest Task.Mar 14 2019, 6:27 PM
matt added a commit: Restricted Diffusion Commit.Mar 20 2019, 9:39 PM
matt moved this task from Far Future to v1.0 on the WriteFreely board.Apr 5 2019, 10:55 PM
matt edited projects, added WriteFreely (v1.0); removed WriteFreely.
matt added a commit: Restricted Diffusion Commit.Apr 7 2019, 2:02 AM