mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
implement event settings
This commit is contained in:
parent
d4fbb4b592
commit
7aa2c03abc
14 changed files with 657 additions and 171 deletions
|
|
@ -1155,11 +1155,14 @@ class TorrentController extends AbstractController
|
|||
);
|
||||
|
||||
// Filter trackers
|
||||
$file->setAnnounceList(
|
||||
[
|
||||
explode('|', $this->getParameter('app.trackers'))
|
||||
]
|
||||
);
|
||||
if ($user->isYggdrasil())
|
||||
{
|
||||
$file->setAnnounceList(
|
||||
[
|
||||
explode('|', $this->getParameter('app.trackers'))
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$data = $file->dumpToString();
|
||||
|
||||
|
|
@ -1260,11 +1263,14 @@ class TorrentController extends AbstractController
|
|||
);
|
||||
|
||||
// Filter trackers
|
||||
$file->setAnnounceList(
|
||||
[
|
||||
explode('|', $this->getParameter('app.trackers'))
|
||||
]
|
||||
);
|
||||
if ($user->isYggdrasil())
|
||||
{
|
||||
$file->setAnnounceList(
|
||||
[
|
||||
explode('|', $this->getParameter('app.trackers'))
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
// Return magnet link
|
||||
return $this->redirect(
|
||||
|
|
@ -1308,7 +1314,11 @@ class TorrentController extends AbstractController
|
|||
time(),
|
||||
$this->getParameter('app.locale'),
|
||||
explode('|', $this->getParameter('app.locales')),
|
||||
$this->getParameter('app.theme')
|
||||
$activityService->getEventCodes(),
|
||||
$this->getParameter('app.theme'),
|
||||
$this->getParameter('app.sensitive'),
|
||||
$this->getParameter('app.yggdrasil'),
|
||||
$this->getParameter('app.approved')
|
||||
);
|
||||
|
||||
// Add user join event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue