diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-30 23:24:55 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-30 23:24:55 -0400 |
| commit | c741082dfd709e20e9b762028a684d39755ecd28 (patch) | |
| tree | 9697b42a178c3f0710f1f7bc4fdaffcad9b53f32 /MediaBrowser.Server.Implementations/Notifications | |
| parent | 98c0b28d14d68cc2989fb60fb09dde0501a8d928 (diff) | |
3.0.5233.40306
Diffstat (limited to 'MediaBrowser.Server.Implementations/Notifications')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs b/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs index 971114809..f712949d9 100644 --- a/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs +++ b/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs @@ -27,6 +27,7 @@ namespace MediaBrowser.Server.Implementations.Notifications new NotificationTypeInfo { Type = NotificationType.ApplicationUpdateInstalled.ToString(), + DefaultDescription = "{ReleaseNotes}", DefaultTitle = "A new version of Media Browser Server has been installed.", Variables = new List<string>{"Version"} }, diff --git a/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs b/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs index 0b3af0409..416b29e86 100644 --- a/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs +++ b/MediaBrowser.Server.Implementations/Notifications/NotificationManager.cs @@ -46,7 +46,7 @@ namespace MediaBrowser.Server.Implementations.Notifications var description = GetDescription(request, options); var tasks = _services.Where(i => IsEnabled(i, notificationType)) - .Select(i => SendNotification(request, i, users, description, title, cancellationToken)); + .Select(i => SendNotification(request, i, users, title, description, cancellationToken)); return Task.WhenAll(tasks); } @@ -176,7 +176,7 @@ namespace MediaBrowser.Server.Implementations.Notifications { if (options != null) { - text = options.Title; + text = options.Description; } } } |
