Skip to content

Commit

Permalink
[K6.3] Ban & Delete all the profile info : Socialshare entries are not
Browse files Browse the repository at this point in the history
removed #9762
  • Loading branch information
xillibit committed Nov 6, 2024
1 parent 2a8b435 commit d1612a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/site/src/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,10 @@ public function ban()
$user->location = '';
$user->gender = 0;

foreach ($user->socialButtons() as $social) {
$user->$social = '';
foreach ($user->socialButtons() as $key => $social) {
if (isset($user->$key)) {
$user->$key = '';
}
}

$user->websitename = '';
Expand Down

0 comments on commit d1612a1

Please sign in to comment.