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

@ -37,6 +37,7 @@
- Show user's ban status [\#1258](https://github.com/torrentpier/torrentpier/pull/1258) ([kovalensky](https://github.com/kovalensky))
- Changed default upload path [\#1261](https://github.com/torrentpier/torrentpier/pull/1261) ([belomaxorka](https://github.com/belomaxorka))
- Some improvements for Ban functionality [\#1262](https://github.com/torrentpier/torrentpier/pull/1262) ([belomaxorka](https://github.com/belomaxorka))
- Striked username if user banned [\#1267](https://github.com/torrentpier/torrentpier/pull/1267) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1203](https://github.com/torrentpier/torrentpier/pull/1203), [\#1222](https://github.com/torrentpier/torrentpier/pull/1222), [\#1251](https://github.com/torrentpier/torrentpier/pull/1251), [\#1260](https://github.com/torrentpier/torrentpier/pull/1260), [\#1264](https://github.com/torrentpier/torrentpier/pull/1264) ([Exileum](https://github.com/Exileum))
## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12)

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;