mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
New: Author Added notification
(cherry picked from commit https://github.com/Radarr/Radarr/commit/f890aadffa5ae579bcf65abdcf3e3948837084a9)
This commit is contained in:
@@ -107,6 +107,16 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
};
|
||||
}
|
||||
|
||||
public WebhookAuthorAddedPayload BuildOnAuthorAdded(Author author)
|
||||
{
|
||||
return new WebhookAuthorAddedPayload
|
||||
{
|
||||
EventType = WebhookEventType.AuthorAdded,
|
||||
InstanceName = _configFileProvider.InstanceName,
|
||||
Author = new WebhookAuthor(author)
|
||||
};
|
||||
}
|
||||
|
||||
public WebhookAuthorDeletePayload BuildOnAuthorDelete(AuthorDeleteMessage deleteMessage)
|
||||
{
|
||||
return new WebhookAuthorDeletePayload
|
||||
|
||||
Reference in New Issue
Block a user