Commit of changing the repitation of the code in posts view.