fix code for automatically tweeting posts