fix: add/remove featured torrents to external tracker

This commit is contained in:
Roardom
2024-04-19 13:49:28 +00:00
parent 509ee7316f
commit 899f121e6f
5 changed files with 25 additions and 3 deletions
@@ -142,7 +142,7 @@ class TorrentBuffController extends Controller
$torrent->featured = true;
$torrent->save();
Unit3dAnnounce::addTorrent($torrent);
Unit3dAnnounce::addFeaturedTorrent($torrent->id);
$featured = new FeaturedTorrent();
$featured->user_id = $user->id;
@@ -180,7 +180,7 @@ class TorrentBuffController extends Controller
$torrent->featured = false;
$torrent->save();
Unit3dAnnounce::addTorrent($torrent);
Unit3dAnnounce::removeFeaturedTorrent($torrent->id);
$appurl = config('app.url');