Added check for posts which aren't visible