mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 01:56:55 -07:00
fix(notifications): 🐛 Do not notify user upon auto approval of a TV show (#4432)
Fixes #4431
This commit is contained in:
parent
8943a978bf
commit
3ad3bddd83
1 changed files with 10 additions and 2 deletions
|
@ -710,7 +710,11 @@ namespace Ombi.Core.Engine
|
|||
|
||||
if (request.Approved)
|
||||
{
|
||||
await NotificationHelper.Notify(request, NotificationType.RequestApproved);
|
||||
var canNotify = await RunSpecificRule(request, SpecificRules.CanSendNotification, string.Empty);
|
||||
if (canNotify.Success)
|
||||
{
|
||||
await NotificationHelper.Notify(request, NotificationType.RequestApproved);
|
||||
}
|
||||
// Autosend
|
||||
await TvSender.Send(request);
|
||||
}
|
||||
|
@ -957,7 +961,11 @@ namespace Ombi.Core.Engine
|
|||
if (model.Approved)
|
||||
{
|
||||
// Autosend
|
||||
await NotificationHelper.Notify(model, NotificationType.RequestApproved);
|
||||
var canNotify = await RunSpecificRule(model, SpecificRules.CanSendNotification, string.Empty);
|
||||
if (canNotify.Success)
|
||||
{
|
||||
await NotificationHelper.Notify(model, NotificationType.RequestApproved);
|
||||
}
|
||||
var result = await TvSender.Send(model);
|
||||
if (result.Success)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue