mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -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
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "icon_url")]
|
||||
public Uri IconUrl { get; set; }
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "image_url")]
|
||||
public Uri ImageUrl { get; set; }
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
/// <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.
|
||||
|
|
|
@ -203,13 +203,13 @@ namespace Ombi.Notifications.Agents
|
|||
Username = string.IsNullOrEmpty(settings.Username) ? "Ombi" : settings.Username,
|
||||
Channel = settings.Channel,
|
||||
Text = model.Message,
|
||||
IconUrl = new Uri(settings.IconUrl),
|
||||
IconUrl = settings.IconUrl,
|
||||
Attachments = new List<MattermostAttachment>
|
||||
{
|
||||
new MattermostAttachment
|
||||
{
|
||||
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