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 19, 2023
1 parent 9a22032 commit 4056159
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 4056159

Please sign in to comment.