diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-04 08:56:20 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-01-09 11:15:15 +0100 |
commit | f7cc67b455a12ccae9b0ea16876d166720364357 (patch) | |
tree | eac2cdbf2e92a16b3eda5d74371c82bd79ae22cb /server/controllers/api/users/index.ts | |
parent | dc13348070d808d0ba3feb56a435b835c2e7e791 (diff) | |
download | PeerTube-f7cc67b455a12ccae9b0ea16876d166720364357.tar.gz PeerTube-f7cc67b455a12ccae9b0ea16876d166720364357.tar.zst PeerTube-f7cc67b455a12ccae9b0ea16876d166720364357.zip |
Add new follow, mention and user registered notifs
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 | ||