mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 08:19:33 -05:00
fix: add/remove featured torrents to external tracker
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user