mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -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
|
@ -37,6 +37,7 @@
|
||||||
- Show user's ban status [\#1258](https://github.com/torrentpier/torrentpier/pull/1258) ([kovalensky](https://github.com/kovalensky))
|
- 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))
|
- 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))
|
- 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))
|
- 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)
|
## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12)
|
||||||
|
|
|
@ -1980,6 +1980,10 @@ function profile_url($data)
|
||||||
|
|
||||||
if (!in_array($user_id, explode(',', EXCLUDED_USERS)) && $username) {
|
if (!in_array($user_id, explode(',', EXCLUDED_USERS)) && $username) {
|
||||||
$profile = '<a href="' . make_url(PROFILE_URL . $user_id) . '">' . $profile . '</a>';
|
$profile = '<a href="' . make_url(PROFILE_URL . $user_id) . '">' . $profile . '</a>';
|
||||||
|
|
||||||
|
if ((bool)getUserBanInfo($user_id)) {
|
||||||
|
return '<s>' . $profile . '</s>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $profile;
|
return $profile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue