mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
(Update) Some Progress
This commit is contained in:
@@ -147,7 +147,7 @@ class TorrentController extends Controller
|
||||
{
|
||||
$torrent = Torrent::withAnyStatus()->findOrFail($id);
|
||||
|
||||
if (auth()->user()->hasBookmarked($torrent->id)) {
|
||||
if (auth()->user()->isBookmarked($torrent->id)) {
|
||||
return redirect()->back()->with(Toastr::error('Torrent has already been bookmarked.', 'Whoops!', ['options']));
|
||||
} else {
|
||||
auth()->user()->bookmarks()->attach($torrent->id);
|
||||
|
||||
Reference in New Issue
Block a user