feat: Added ability to hide BitTorrent client in peers list (#1890)

* feat: Added ability to hide peer torrent client

* Update displaying_torrent.php

* Update functions.php

* Update register.php

* Updated
This commit is contained in:
Roman Kelesidis 2025-05-04 10:38:38 +03:00 committed by GitHub
commit f5d65b8911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 22 deletions

View file

@ -197,6 +197,7 @@ $bf['user_opt'] = [
'dis_post_edit' => 13, // [PROHIBITIONS] Block editing own posts / topics
'user_dls' => 14, // [SETTINGS] Hide list of "Current downloads" in my profile
'user_retracker' => 15, // [SETTINGS] Add my retracker into downloaded torrent files
'user_hide_torrent_client' => 16 // [SETTINGS] Option to hide user's torrent client in peer list
];
function bit2dec($bit_num)

View file

@ -365,6 +365,7 @@ foreach ($profile_fields as $field => $can_edit) {
'user_dls' => $reg_mode ? false : true,
'user_callseed' => $reg_mode ? true : true,
'user_retracker' => $reg_mode ? true : true,
'user_hide_torrent_client' => $reg_mode ? true : true,
];
foreach ($update_user_opt as $opt => $can_change_opt) {