mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00

committed by
Leonardo Galli

parent
ffb098357d
commit
6a1b099117
@@ -109,6 +109,7 @@ namespace NzbDrone.Core.Notifications.Slack
|
||||
private SlackPayload CreatePayload(string message, List<Attachment> attachments = null)
|
||||
{
|
||||
var icon = Settings.Icon;
|
||||
var channel = Settings.Channel;
|
||||
|
||||
var payload = new SlackPayload
|
||||
{
|
||||
@@ -130,6 +131,11 @@ namespace NzbDrone.Core.Notifications.Slack
|
||||
}
|
||||
}
|
||||
|
||||
if (channel.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
payload.Channel = channel;
|
||||
}
|
||||
|
||||
return payload;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user