mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Striked username if user banned (#1267)
* Striked username if user banned * Update CHANGELOG.md
This commit is contained in:
parent
2d54b82f1c
commit
50dbc617cd
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue