(Update) Some Progress

This commit is contained in:
HDVinnie
2018-04-26 21:19:56 -04:00
parent 8316952914
commit c1579ee59f
5 changed files with 33 additions and 63 deletions
+1 -1
View File
@@ -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);