Skip to content

Commit

Permalink
Merge pull request #264 from Kelketek/fox/artconomy-caption-limit
Browse files Browse the repository at this point in the history
fix: Description Length Limit
  • Loading branch information
mvdicarlo authored Oct 20, 2023
2 parents 9a22032 + c8c7a3b commit 655dbe9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { LoginResponse } from '../interfaces/login-response.interface';
import { ScalingOptions } from '../interfaces/scaling-options.interface';
import { Website } from '../website.base';
import { PostData } from '../../submission/post/interfaces/post-data.interface';
import FormContent from "../../utils/form-content.util";

@Injectable()
export class Artconomy extends Website {
Expand Down Expand Up @@ -250,6 +251,13 @@ export class Artconomy extends Website {
'relationships depicted',
);
}
const description = this.defaultDescriptionParser(
FormContent.getDescription(defaultPart.data.description, submissionPart.data.description),
)

if (description.length > 2000) {
problems.push('Description must be 2000 characters or fewer.')
}

const maxMB = 99;
files.forEach(file => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"release:linux": "node create-signer.js && npm run make && cd electron-app && yarn run release:linux",
"release:osx": "npm run make && cd electron-app && yarn run release:osx",
"contribute": "npm ci --ignore-scripts && run-p --silent --print-name ci:** && run-p build:**",
"contribute:debug": "npm ci --ignore-scripts && run-p --print-name ci:** && --print-label run-p build:**",
"contribute:debug": "npm ci --ignore-scripts && run-p --print-name ci:** && run-p build:**",
"ci:commons": "cd commons && npm ci --no-audit&& npm run build",
"ci:app": "cd electron-app && npm ci --no-audit",
"ci:ui": "cd ui && npm ci --no-audit --no-fund --no-deprecate",
Expand Down

0 comments on commit 655dbe9

Please sign in to comment.