mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
merge
This commit is contained in:
commit
ac51126437
39 changed files with 529 additions and 29 deletions
|
@ -17,7 +17,9 @@ namespace Ombi.Notifications
|
|||
public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s, UserNotificationPreferences pref)
|
||||
{
|
||||
LoadIssues(opts);
|
||||
RequestId = req.Id.ToString();
|
||||
|
||||
RequestId = req?.Id.ToString();
|
||||
|
||||
string title;
|
||||
if (req == null)
|
||||
{
|
||||
|
@ -68,7 +70,8 @@ namespace Ombi.Notifications
|
|||
{
|
||||
LoadIssues(opts);
|
||||
|
||||
RequestId = req.Id.ToString();
|
||||
RequestId = req?.Id.ToString();
|
||||
|
||||
string title;
|
||||
if (req == null)
|
||||
{
|
||||
|
@ -218,6 +221,7 @@ namespace Ombi.Notifications
|
|||
}
|
||||
|
||||
// User Defined
|
||||
public string RequestId { get; set; }
|
||||
public string RequestedUser { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string IssueUser => UserName;
|
||||
|
@ -241,7 +245,6 @@ namespace Ombi.Notifications
|
|||
public string UserPreference { get; set; }
|
||||
public string DenyReason { get; set; }
|
||||
public string AvailableDate { get; set; }
|
||||
public string RequestId { get; set; }
|
||||
|
||||
// System Defined
|
||||
private string LongDate => DateTime.Now.ToString("D");
|
||||
|
@ -251,6 +254,7 @@ namespace Ombi.Notifications
|
|||
|
||||
public Dictionary<string, string> Curlys => new Dictionary<string, string>
|
||||
{
|
||||
{nameof(RequestId), RequestId },
|
||||
{nameof(RequestedUser), RequestedUser },
|
||||
{nameof(Title), Title },
|
||||
{nameof(RequestedDate), RequestedDate },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue