mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Fixed the issue with notifications not sending
This commit is contained in:
parent
55963085bc
commit
87cc5d4cc7
1 changed files with 13 additions and 3 deletions
|
@ -17,7 +17,11 @@ namespace Ombi.Notifications
|
|||
public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s, UserNotificationPreferences pref)
|
||||
{
|
||||
LoadIssues(opts);
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
if (pref != null)
|
||||
{
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
}
|
||||
|
||||
string title;
|
||||
if (req == null)
|
||||
{
|
||||
|
@ -62,7 +66,10 @@ namespace Ombi.Notifications
|
|||
public void Setup(NotificationOptions opts, AlbumRequest req, CustomizationSettings s, UserNotificationPreferences pref)
|
||||
{
|
||||
LoadIssues(opts);
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
if (pref != null)
|
||||
{
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
}
|
||||
string title;
|
||||
if (req == null)
|
||||
{
|
||||
|
@ -106,7 +113,10 @@ namespace Ombi.Notifications
|
|||
public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref)
|
||||
{
|
||||
LoadIssues(opts);
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
if (pref != null)
|
||||
{
|
||||
UserPreference = pref.Enabled ? pref.Value : string.Empty;
|
||||
}
|
||||
string title;
|
||||
if (req == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue