Added bt_announce_url autofill (#1331)

* `bt_announce_url` autofill

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-01-22 14:48:39 +07:00 committed by GitHub
commit f28b3e2d80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -6,6 +6,7 @@
**Merged pull requests:**
- Release 2.4.1 🦉 ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky))
- Added `bt_announce_url` autofill [\#1331](https://github.com/torrentpier/torrentpier/pull/1331) ([belomaxorka](https://github.com/belomaxorka))
- Added support for fastly cdn [\#1327](https://github.com/torrentpier/torrentpier/pull/1327) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky))
- Use `target="_blank"` in admin for profile_url() redirects [\#1330](https://github.com/torrentpier/torrentpier/pull/1330) ([belomaxorka](https://github.com/belomaxorka))
- Used declensions for days in some cases [\#1310](https://github.com/torrentpier/torrentpier/pull/1310) ([belomaxorka](https://github.com/belomaxorka))

View file

@ -506,7 +506,7 @@ VALUES ('allow_autologin', '1'),
('birthday_check_day', '7'),
('bt_add_auth_key', '1'),
('bt_allow_spmode_change', '1'),
('bt_announce_url', 'https://demo.torrentpier.com/bt/announce.php'),
('bt_announce_url', ''),
('bt_disable_dht', '0'),
('bt_check_announce_url', '0'),
('bt_del_addit_ann_urls', '1'),

View file

@ -394,6 +394,11 @@ $user = new TorrentPier\Legacy\Common\User();
$userdata =& $user->data;
// Set announcer default URL
if (empty($bb_cfg['bt_announce_url'])) {
bb_update_config(['bt_announce_url' => FULL_URL . 'bt/announce.php']);
}
/**
* Cron
*/