added condition to confirm that each post has some likes to query
added post with no likes to be filtered out