Use shouldSend for NewBounty notifications

This commit is contained in:
Jay Sizzla
2024-12-22 14:19:12 +00:00
parent c1771dc65c
commit 6e34a86388
3 changed files with 324 additions and 3 deletions
+1 -3
View File
@@ -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'));