mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-11 05:59:57 -06:00
@@ -384,11 +384,11 @@ class AnnounceController extends Controller
|
||||
fn () => Torrent::withoutGlobalScope(ApprovedScope::class)
|
||||
->select(['id', 'free', 'doubleup', 'seeders', 'leechers', 'times_completed', 'status'])
|
||||
->where('info_hash', '=', $infoHash)
|
||||
->first()
|
||||
->firstOr(fn () => -1)
|
||||
);
|
||||
|
||||
// If Torrent Doesn't Exsist Return Error to Client
|
||||
if ($torrent === null) {
|
||||
if ($torrent === '-1') {
|
||||
throw new TrackerException(150);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user