aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/models/plugins/server/server-hook.model.ts4
-rw-r--r--shared/server-commands/users/users-command.ts5
2 files changed, 6 insertions, 3 deletions
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index 5bf01c4b4..f11d2050b 100644
--- a/shared/models/plugins/server/server-hook.model.ts
+++ b/shared/models/plugins/server/server-hook.model.ts
@@ -103,7 +103,9 @@ export const serverFilterHookObject = {
103 'filter:job-queue.process.result': true, 103 'filter:job-queue.process.result': true,
104 104
105 'filter:transcoding.manual.resolutions-to-transcode.result': true, 105 'filter:transcoding.manual.resolutions-to-transcode.result': true,
106 'filter:transcoding.auto.resolutions-to-transcode.result': true 106 'filter:transcoding.auto.resolutions-to-transcode.result': true,
107
108 'filter:activity-pub.remote-video-comment.create.accept.result': true
107} 109}
108 110
109export type ServerFilterHookName = keyof typeof serverFilterHookObject 111export type ServerFilterHookName = keyof typeof serverFilterHookObject
diff --git a/shared/server-commands/users/users-command.ts b/shared/server-commands/users/users-command.ts
index d8303848d..e7d021059 100644
--- a/shared/server-commands/users/users-command.ts
+++ b/shared/server-commands/users/users-command.ts
@@ -217,12 +217,13 @@ export class UsersCommand extends AbstractCommand {
217 username: string 217 username: string
218 password?: string 218 password?: string
219 displayName?: string 219 displayName?: string
220 email?: string
220 channel?: { 221 channel?: {
221 name: string 222 name: string
222 displayName: string 223 displayName: string
223 } 224 }
224 }) { 225 }) {
225 const { username, password = 'password', displayName, channel } = options 226 const { username, password = 'password', displayName, channel, email = username + '@example.com' } = options
226 const path = '/api/v1/users/register' 227 const path = '/api/v1/users/register'
227 228
228 return this.postBodyRequest({ 229 return this.postBodyRequest({
@@ -232,7 +233,7 @@ export class UsersCommand extends AbstractCommand {
232 fields: { 233 fields: {
233 username, 234 username,
234 password, 235 password,
235 email: username + '@example.com', 236 email,
236 displayName, 237 displayName,
237 channel 238 channel
238 }, 239 },