From 2af9502cdb786d12f91ad8248644f76ae6b468b0 Mon Sep 17 00:00:00 2001 From: Jacob Goldberg <1960707+jacob-g@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:54:52 -0500 Subject: [PATCH] update user count on request acceptance (closes #197) (#198) --- src/database/DatabaseInteractions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/database/DatabaseInteractions.php b/src/database/DatabaseInteractions.php index ac1c86f..b1d425d 100644 --- a/src/database/DatabaseInteractions.php +++ b/src/database/DatabaseInteractions.php @@ -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; }