Added icon_url functionality to mattermost notification

This commit is contained in:
anonaut 2017-03-14 00:15:26 +01:00
commit 2f1060b665
4 changed files with 12 additions and 2 deletions

View file

@ -125,7 +125,7 @@ namespace Ombi.Services.Notification
{
try
{
var notification = new MattermostNotificationBody { username = config.Username, channel = config.Channel ?? string.Empty, text = message };
var notification = new MattermostNotificationBody { username = config.Username, channel = config.Channel ?? string.Empty, icon_url = config.IconUrl ?? string.Empty, text = message };
var result = await Api.PushAsync(config.WebhookUrl, notification);
if (!result.Equals("ok"))