Skip to content

Commit

Permalink
fix: Description length limit for Artconomy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelketek committed Oct 17, 2023
1 parent 9a22032 commit 5a65309
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions electron-app/src/server/websites/artconomy/artconomy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ export class Artconomy extends Website {
);
}

let description: string
if (submissionPart.data.description.overwriteDefault) {
description = submissionPart.data.description.value
} else {
description = defaultPart.data.description.value
}
if (description.length > 2000) {
problems.push('Description must be 2000 characters or fewer.')
}

const maxMB = 99;
files.forEach(file => {
const { type, size, name, mimetype } = file;
Expand Down

0 comments on commit 5a65309

Please sign in to comment.