From 8d79f858c3f4ef7efc0652c8752e2a474e27b7b6 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 3 Apr 2023 18:46:59 +0800 Subject: [PATCH] Double max length of quote in highlights --- packages/api/src/schema.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/schema.ts b/packages/api/src/schema.ts index cab9f41a2..c409027c1 100755 --- a/packages/api/src/schema.ts +++ b/packages/api/src/schema.ts @@ -697,7 +697,7 @@ const schema = gql` shortId: String! articleId: ID! patch: String - quote: String @sanitize(maxLength: 6000, minLength: 1) + quote: String @sanitize(maxLength: 12000, minLength: 1) prefix: String @sanitize suffix: String @sanitize annotation: String @sanitize(maxLength: 4000) @@ -731,7 +731,7 @@ const schema = gql` shortId: ID! articleId: ID! patch: String! - quote: String! @sanitize(maxLength: 6000, minLength: 1) + quote: String! @sanitize(maxLength: 12000, minLength: 1) prefix: String @sanitize suffix: String @sanitize annotation: String @sanitize(maxLength: 8000) @@ -764,7 +764,7 @@ const schema = gql` highlightId: ID! annotation: String @sanitize(maxLength: 4000) sharedAt: Date - quote: String @sanitize(maxLength: 6000, minLength: 1) + quote: String @sanitize(maxLength: 12000, minLength: 1) html: String }