Skip to content

Commit

Permalink
update user count on request acceptance (closes #197) (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-g authored Jul 18, 2024
1 parent 0a1a2f7 commit 2af9502
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/database/DatabaseInteractions.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ function createAccount(AccountRequest $request, User $creator, IDatabase $dbw) {
//if there was any requirements bypass, remove it
removeUsernameRequirementsBypass($request->username, $dbw);

//update user count
DeferredUpdates::addUpdate( SiteStatsUpdate::factory( [ 'users' => 1 ] ) );

return $user;
}

Expand Down

0 comments on commit 2af9502

Please sign in to comment.