Don't check max string length for ebook description

This commit is contained in:
Alex Cabal 2025-01-07 09:41:33 -06:00
parent 13eb02842a
commit 87620287f1

View file

@ -1441,10 +1441,6 @@ final class Ebook{
$this->Description = null;
}
if(isset($this->Description) && strlen($this->Description) > EBOOKS_MAX_STRING_LENGTH){
$error->Add(new Exceptions\StringTooLongException('Ebook Description'));
}
$this->LongDescription = trim($this->LongDescription ?? '');
if($this->LongDescription == ''){
$this->LongDescription = null;