You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-17 01:32:30 +02:00
Fixed: Sending Slack notifications without an icon
This commit is contained in:
@ -115,14 +115,17 @@ namespace NzbDrone.Core.Notifications.Slack
|
|||||||
Attachments = attachments
|
Attachments = attachments
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set the correct icon based on the value
|
if (icon.IsNotNullOrWhiteSpace())
|
||||||
if (icon.StartsWith(":") && icon.EndsWith(":"))
|
|
||||||
{
|
{
|
||||||
payload.IconEmoji = icon;
|
// Set the correct icon based on the value
|
||||||
}
|
if (icon.StartsWith(":") && icon.EndsWith(":"))
|
||||||
else if (icon.IsNotNullOrWhiteSpace())
|
{
|
||||||
{
|
payload.IconEmoji = icon;
|
||||||
payload.IconUrl = icon;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
payload.IconUrl = icon;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return payload;
|
return payload;
|
||||||
|
Reference in New Issue
Block a user