corrected error where showing the posts of friends was not displaying correctly