Fixed Users Awaiting Approval not counting down

Neal

Well-known member
Since installing 1.1.4 I've had a few spammers registering. I see they show in the approval area as I've set registration to manual approval. When I rejected a user the countdown still shows 1. I've had more spammers since but still the countdown shows 1 even though there are now no more users awaiting approval.
 
In library/XenForo/DataWriter/User.php, find:
Code:
$this->getModelFromCache('XenForo_Model_Avatar')->deleteAvatar($userId, false);
Add this after:
Code:
if ($this->get('user_state') == 'moderated')
{
$this->getModelFromCache('XenForo_Model_User')->rebuildUserModerationQueueCache();
}

I have just added this fix to the download package.

Note this only occurred when deleting the user; approving would be fine.
 
I have the same "Proplem", but the fix wont help. I just have replaced the old User.php with the new User.php from the Download Area, and the Count is still there. Login/LogOut doesn`t help.
 
Back
Top Bottom