mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
add: link to torrent in torrent comment
This commit is contained in:
@@ -80,8 +80,12 @@ class TorrentDownloadController extends Controller
|
||||
if ($request->user() || ($rsskey && $user)) {
|
||||
// Set the announce key and add the user passkey
|
||||
$dict['announce'] = \route('announce', ['passkey' => $user->passkey]);
|
||||
// Remove Other announce url
|
||||
unset($dict['announce-list']);
|
||||
// Set link to torrent as the comment
|
||||
if (config('torrent.comment')) {
|
||||
$dict['comment'] = \config('torrent.comment').'. '.\route('torrent', ['id' => $id]);
|
||||
} else {
|
||||
$dict['comment'] = \route('torrent', ['id' => $id]);
|
||||
}
|
||||
} else {
|
||||
return \to_route('login');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user