mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add notification plugin hook
This commit is contained in:
parent
0260dc8aca
commit
785f1897a4
23 changed files with 61 additions and 43 deletions
|
@ -13,7 +13,7 @@ export abstract class AbstractNotification <T, U = MUserWithNotificationSetting>
|
|||
abstract getSetting (user: U): UserNotificationSettingValue
|
||||
abstract getTargetUsers (): U[]
|
||||
|
||||
abstract createNotification (user: U): Promise<UserNotificationModelForApi>
|
||||
abstract createNotification (user: U): UserNotificationModelForApi
|
||||
abstract createEmail (to: string): EmailPayload | Promise<EmailPayload>
|
||||
|
||||
isDisabled (): boolean | Promise<boolean> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue