fix: clean torrent files

This commit is contained in:
Roardom
2023-02-09 06:13:46 -06:00
parent 8a42869e79
commit 3ca906a68d
4 changed files with 39 additions and 9 deletions
@@ -60,9 +60,6 @@ class TorrentZipController extends Controller
// Set the announce key and add the user passkey
$dict['announce'] = $announceUrl;
// Remove multi-tracker announce url possibly still stored by legacy upload system
unset($dict['announce-list']);
// Set link to torrent as the comment
if (config('torrent.comment')) {
$dict['comment'] = config('torrent.comment').'. '.route('torrent', ['id' => $torrent->id]);