fix embed video, photo on post status and format small code