Skip to content

Commit 2cff601

Browse files
Cyperghostdtdesign
andauthored
Apply suggestions from code review
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
1 parent b4adf28 commit 2cff601

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ts/WoltLabSuite/Core/Component/User/Avatar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @copyright 2001-2024 WoltLab GmbH
66
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
77
* @since 6.2
8+
* @woltlabExcludeBundle all
89
*/
910

1011
import { promiseMutex } from "WoltLabSuite/Core/Helper/PromiseMutex";

wcfsetup/install/files/lib/system/user/command/SetAvatar.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public function __invoke()
4242
UserStorageHandler::getInstance()->reset([$this->user->userID], 'avatar');
4343
UserProfileRuntimeCache::getInstance()->removeObject($this->user->userID);
4444

45-
// check if the user will be automatically added to new user groups
46-
// because of the changed avatar
45+
// Setting an avatar could satisfy the condition to assign a user to user groups.
4746
UserGroupAssignmentHandler::getInstance()->checkUsers([$this->user->userID]);
4847

4948
if ($this->user->userID === WCF::getUser()->userID) {

0 commit comments

Comments
 (0)