Take logic for recent posts out of view