ActivityPub-federated video streaming platform using P2P directly in your web browser
Increase video comments limit
Chocobozzz298b3fd31529
diff --git a/server/initializers/constants.ts b/server/initializers/constants.tsindex d583912fb7..298322e3d3 100644--- a/server/initializers/constants.ts+++ b/server/initializers/constants.ts@@ -283,7 +283,7 @@ const CONSTRAINTS_FIELDS = {COUNT: { min: 0 }},VIDEO_COMMENTS: {- TEXT: { min: 1, max: 3000 }, // Length+ TEXT: { min: 1, max: 10000 }, // LengthURL: { min: 3, max: 2000 } // Length},VIDEO_SHARE: {diff --git a/server/tests/api/check-params/video-comments.ts b/server/tests/api/check-params/video-comments.tsindex e67cc01fa4..38f0695039 100644--- a/server/tests/api/check-params/video-comments.ts+++ b/server/tests/api/check-params/video-comments.ts@@ -133,7 +133,7 @@ describe('Test video comments API validator', function () {it('Should fail with a long comment', async function () {const fields = {- text: 'h'.repeat(3001)+ text: 'h'.repeat(10001)}await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields })})@@ -176,7 +176,7 @@ describe('Test video comments API validator', function () {it('Should fail with a long comment', async function () {const fields = {- text: 'h'.repeat(3001)+ text: 'h'.repeat(10001)}await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields })})