fix attachment assets to post + some test