Striked username if user banned (#1267)

* Striked username if user banned

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-12-26 23:15:51 +07:00 committed by GitHub
commit 50dbc617cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -1980,6 +1980,10 @@ function profile_url($data)
if (!in_array($user_id, explode(',', EXCLUDED_USERS)) && $username) {
$profile = '<a href="' . make_url(PROFILE_URL . $user_id) . '">' . $profile . '</a>';
if ((bool)getUserBanInfo($user_id)) {
return '<s>' . $profile . '</s>';
}
}
return $profile;