Refactored filtering top posts