Merge pull request #1970 from omnivore-app/double-quote-size-limit

Double max length of quote in highlights
This commit is contained in:
Hongbo Wu 2023-04-04 11:44:28 +08:00 committed by GitHub
commit 32d31af847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}