diff options
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r-- | server/controllers/api/users/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 98be46ea2..9e6a019f6 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -40,6 +40,7 @@ import { deleteUserToken } from '../../../lib/oauth-model' | |||
40 | import { myBlocklistRouter } from './my-blocklist' | 40 | import { myBlocklistRouter } from './my-blocklist' |
41 | import { myVideosHistoryRouter } from './my-history' | 41 | import { myVideosHistoryRouter } from './my-history' |
42 | import { myNotificationsRouter } from './my-notifications' | 42 | import { myNotificationsRouter } from './my-notifications' |
43 | import { Notifier } from '../../../lib/notifier' | ||
43 | 44 | ||
44 | const auditLogger = auditLoggerFactory('users') | 45 | const auditLogger = auditLoggerFactory('users') |
45 | 46 | ||
@@ -213,6 +214,8 @@ async function registerUser (req: express.Request, res: express.Response) { | |||
213 | await sendVerifyUserEmail(user) | 214 | await sendVerifyUserEmail(user) |
214 | } | 215 | } |
215 | 216 | ||
217 | Notifier.Instance.notifyOnNewUserRegistration(user) | ||
218 | |||
216 | return res.type('json').status(204).end() | 219 | return res.type('json').status(204).end() |
217 | } | 220 | } |
218 | 221 | ||