diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-03 11:33:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-03 11:33:43 +0200 |
commit | 785f1897a42984ece9c6f65829d195d67e331d95 (patch) | |
tree | 1cb3b33cfc797b8f1abbab90749c1e3187bbd311 /server/lib/notifier/shared/common | |
parent | 0260dc8aca952f9412a8620e433b9e16e675696e (diff) | |
download | PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.gz PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.zst PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.zip |
Add notification plugin hook
Diffstat (limited to 'server/lib/notifier/shared/common')
-rw-r--r-- | server/lib/notifier/shared/common/abstract-notification.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/notifier/shared/common/abstract-notification.ts b/server/lib/notifier/shared/common/abstract-notification.ts index 53e2e02d5..79403611e 100644 --- a/server/lib/notifier/shared/common/abstract-notification.ts +++ b/server/lib/notifier/shared/common/abstract-notification.ts | |||
@@ -13,7 +13,7 @@ export abstract class AbstractNotification <T, U = MUserWithNotificationSetting> | |||
13 | abstract getSetting (user: U): UserNotificationSettingValue | 13 | abstract getSetting (user: U): UserNotificationSettingValue |
14 | abstract getTargetUsers (): U[] | 14 | abstract getTargetUsers (): U[] |
15 | 15 | ||
16 | abstract createNotification (user: U): Promise<UserNotificationModelForApi> | 16 | abstract createNotification (user: U): UserNotificationModelForApi |
17 | abstract createEmail (to: string): EmailPayload | Promise<EmailPayload> | 17 | abstract createEmail (to: string): EmailPayload | Promise<EmailPayload> |
18 | 18 | ||
19 | isDisabled (): boolean | Promise<boolean> { | 19 | isDisabled (): boolean | Promise<boolean> { |