ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix users tests
Chocobozzz1e904cde34ba
diff --git a/config/test.yaml b/config/test.yamlindex 8e887407e7..fb37ff8c7a 100644--- a/config/test.yaml+++ b/config/test.yaml@@ -87,8 +87,8 @@ import:http:enabled: trueproxy:- enabled: true- url: "http://188.165.225.149:7899"+ enabled: false+ url: ""torrent:enabled: truediff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.tsindex 732a6faa3b..c8e9eaeaaf 100644--- a/server/controllers/api/users/index.ts+++ b/server/controllers/api/users/index.ts@@ -205,7 +205,7 @@ async function createUser (req: express.Request, res: express.Response) {Hooks.runAction('action:api.user.created', { body, user, account, videoChannel })- return res.status(201).json({+ return res.json({user: {id: user.id,account: {diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.tsindex 766189dfe0..08b7743a6b 100644--- a/shared/extra-utils/users/users.ts+++ b/shared/extra-utils/users/users.ts@@ -29,7 +29,7 @@ function createUser (parameters: CreateUserArgs) {videoQuota = 1000000,videoQuotaDaily = -1,role = UserRole.USER,- specialStatus = 201+ specialStatus = 200} = parametersconst path = '/api/v1/users'diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 186d7d37da..eec4e02486 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -53,7 +53,7 @@ externalDocs:tags:- name: Accountsdescription: >- Accounts encompass remote accounts discovered across the federation,+ Accounts encompass remote accounts discovered across the federation,and correspond to the main Actor, along with video channels a user can create, whichare also Actors.@@ -484,7 +484,7 @@ paths:tags:- Usersresponses:- '201':+ '200':description: user createdcontent:application/json:@@ -3879,11 +3879,11 @@ components:files:type: arrayitems:- $ref: '#/components/schemas/FileRedundancyInformation'+ $ref: '#/components/schemas/FileRedundancyInformation'streamingPlaylists:type: arrayitems:- $ref: '#/components/schemas/FileRedundancyInformation'+ $ref: '#/components/schemas/FileRedundancyInformation'VideoImportStateConstant:properties:id:@@ -5265,4 +5265,4 @@ components:content:application/json:schema:- $ref: '#/components/schemas/VideoListResponse'\ No newline at end of file+ $ref: '#/components/schemas/VideoListResponse'