More preparation for "show only unread/new posts" feature

Also fixed $auth issue (hopefully)