Adding function to publish future posts