untitled fix
This commit is contained in:
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"main.js": {
|
"main.js": {
|
||||||
"file": "assets/main.c1fd60c7.js",
|
"file": "assets/main.88a796e4.js",
|
||||||
"src": "main.js",
|
"src": "main.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"css": [
|
"css": [
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ function noTemplate(schema, record) {
|
|||||||
record?.data[schema.fields.filter((f) => f.info.name === "text")[0]?.name]
|
record?.data[schema.fields.filter((f) => f.info.name === "text")[0]?.name]
|
||||||
).slice(0, 300);
|
).slice(0, 300);
|
||||||
|
|
||||||
if(title == ""){
|
if(title.trim() == ""){
|
||||||
return "Untitled";
|
return "~Untitled~";
|
||||||
}
|
}
|
||||||
|
|
||||||
return title;
|
return title;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function uploadFile(Schema $schema, UploadedFile $file): FileUploadResult
|
|||||||
$mimetype = $file->getMimeType();
|
$mimetype = $file->getMimeType();
|
||||||
|
|
||||||
$optimizerChain = OptimizerChainFactory::create();
|
$optimizerChain = OptimizerChainFactory::create();
|
||||||
$optimizerChain->setTimeout(10)->optimize($file->getPathName());
|
$optimizerChain->setTimeout(30)->optimize($file->getPathName());
|
||||||
|
|
||||||
$checksum = sha1_file($file);
|
$checksum = sha1_file($file);
|
||||||
$recordId = checkDuplicate($schema->name, $checksum, $file->getSize());
|
$recordId = checkDuplicate($schema->name, $checksum, $file->getSize());
|
||||||
|
|||||||
Reference in New Issue
Block a user