looping through liked_posts in handlePosts