update posts to remove references to attachments