mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
Use shouldSend for NewBounty notifications
This commit is contained in:
@@ -78,9 +78,7 @@ class BountyController extends Controller
|
||||
|
||||
$requester = $torrentRequest->user;
|
||||
|
||||
if ($requester->acceptsNotification($request->user(), $requester, 'request', 'show_request_bounty')) {
|
||||
$requester->notify(new NewRequestBounty($bounty));
|
||||
}
|
||||
$requester->notify(new NewRequestBounty($bounty));
|
||||
|
||||
return to_route('requests.show', ['torrentRequest' => $torrentRequest])
|
||||
->with('success', trans('request.added-bonus'));
|
||||
|
||||
Reference in New Issue
Block a user