mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Fix #2175
This commit is contained in:
parent
48c86369a6
commit
55265211b4
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ namespace Ombi.Api.Mattermost.Models
|
||||||
/// Bot/User Icon
|
/// Bot/User Icon
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty(PropertyName = "icon_url")]
|
[JsonProperty(PropertyName = "icon_url")]
|
||||||
public Uri IconUrl { get; set; }
|
public string IconUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Message body. Supports Markdown
|
/// Message body. Supports Markdown
|
||||||
|
@ -142,7 +142,7 @@ namespace Ombi.Api.Mattermost.Models
|
||||||
/// Large images are resized to a maximum width of 400px or a maximum height of 300px, while still maintaining the original aspect ratio.
|
/// Large images are resized to a maximum width of 400px or a maximum height of 300px, while still maintaining the original aspect ratio.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty(PropertyName = "image_url")]
|
[JsonProperty(PropertyName = "image_url")]
|
||||||
public Uri ImageUrl { get; set; }
|
public string ImageUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An optional URL to an image file(GIF, JPEG, PNG, or BMP) that is displayed as a 75x75 pixel thumbnail on the right side of an attachment.
|
/// An optional URL to an image file(GIF, JPEG, PNG, or BMP) that is displayed as a 75x75 pixel thumbnail on the right side of an attachment.
|
||||||
|
|
|
@ -203,13 +203,13 @@ namespace Ombi.Notifications.Agents
|
||||||
Username = string.IsNullOrEmpty(settings.Username) ? "Ombi" : settings.Username,
|
Username = string.IsNullOrEmpty(settings.Username) ? "Ombi" : settings.Username,
|
||||||
Channel = settings.Channel,
|
Channel = settings.Channel,
|
||||||
Text = model.Message,
|
Text = model.Message,
|
||||||
IconUrl = new Uri(settings.IconUrl),
|
IconUrl = settings.IconUrl,
|
||||||
Attachments = new List<MattermostAttachment>
|
Attachments = new List<MattermostAttachment>
|
||||||
{
|
{
|
||||||
new MattermostAttachment
|
new MattermostAttachment
|
||||||
{
|
{
|
||||||
Title = model.Other.ContainsKey("title") ? model.Other["title"] : string.Empty,
|
Title = model.Other.ContainsKey("title") ? model.Other["title"] : string.Empty,
|
||||||
ImageUrl = model.Other.ContainsKey("image") ? new Uri(model.Other["image"]) : null,
|
ImageUrl = model.Other.ContainsKey("image") ? model.Other["image"] : string.Empty,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue