refactored hotness method in Post model