Skip to content

Commit 84be03e

Browse files
authored
Merge pull request #4556 from Roardom/fix-featured-upload
2 parents 1099dfb + 494afca commit 84be03e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/API/TorrentController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function store(Request $request): \Illuminate\Http\JsonResponse
334334
}
335335

336336
// Set torrent to featured
337-
if ($user->group->is_modo || $user->group->is_internal && $request->input('featured')) {
337+
if (($user->group->is_modo || $user->group->is_internal) && $request->input('featured')) {
338338
$featuredTorrent = new FeaturedTorrent();
339339
$featuredTorrent->user_id = $user->id;
340340
$featuredTorrent->torrent_id = $torrent->id;
@@ -345,7 +345,7 @@ public function store(Request $request): \Illuminate\Http\JsonResponse
345345

346346
Unit3dAnnounce::addTorrent($torrent);
347347

348-
if ($user->group->is_modo || $user->group->is_internal && $request->input('featured')) {
348+
if (($user->group->is_modo || $user->group->is_internal) && $request->input('featured')) {
349349
Unit3dAnnounce::addFeaturedTorrent($torrent->id);
350350
}
351351

0 commit comments

Comments
 (0)