Merge pull request #6613 from Ocelot-Social-Community/chat-trim-message

fix(backend): chat create message - only take 2000 chat message characters
This commit is contained in:
Hannes Heine 2023-07-19 15:46:11 +02:00 committed by GitHub
commit 6c31a6f51c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ export default {
createdAt: toString(datetime()),
id: apoc.create.uuid(),
indexId: CASE WHEN maxIndex IS NOT NULL THEN maxIndex + 1 ELSE 0 END,
content: $content,
content: LEFT($content,2000),
saved: true,
distributed: false,
seen: false