diff --git a/resources/views/torrent/torrent.blade.php b/resources/views/torrent/torrent.blade.php index b84162d59c..4ecbb3f85b 100644 --- a/resources/views/torrent/torrent.blade.php +++ b/resources/views/torrent/torrent.blade.php @@ -691,10 +691,12 @@ class="btn btn-primary btn-xs" role="button"> @else - - @lang('torrent.revokefeatured') - +
+ @csrf + +
@endif @endif diff --git a/routes/web.php b/routes/web.php index 7546103625..026d83dc10 100755 --- a/routes/web.php +++ b/routes/web.php @@ -273,7 +273,7 @@ Route::get('/{id}/bumpTorrent', [App\Http\Controllers\TorrentController::class, 'bumpTorrent'])->name('bumpTorrent'); Route::get('/{id}/torrent_sticky', [App\Http\Controllers\TorrentController::class, 'sticky'])->name('torrent_sticky'); Route::post('/{id}/torrent_feature', [App\Http\Controllers\TorrentController::class, 'grantFeatured'])->name('torrent_feature'); - Route::get('/{id}/torrent_revokefeature', [App\Http\Controllers\TorrentController::class, 'revokeFeatured'])->name('torrent_revokefeature'); + Route::post('/{id}/torrent_revokefeature', [App\Http\Controllers\TorrentController::class, 'revokeFeatured'])->name('torrent_revokefeature'); Route::get('/{id}/reseed', [App\Http\Controllers\TorrentController::class, 'reseedTorrent'])->name('reseed'); Route::post('/{id}/tip_uploader', [App\Http\Controllers\BonusController::class, 'tipUploader'])->name('tip_uploader'); Route::get('/{id}/freeleech_token', [App\Http\Controllers\TorrentController::class, 'freeleechToken'])->name('freeleech_token');