Template/Update (Part 38)

* split Screenshot upload & management into separate endpoints
 * move shared functions to manager classes
 * cleanup javascript
 * move test for config screenshot min size to cfg class
This commit is contained in:
Sarjuuk
2025-08-13 23:19:57 +02:00
parent 3d3e2211e5
commit a369244908
35 changed files with 1546 additions and 1031 deletions

View File

@@ -86,10 +86,7 @@ trait TrCommunityHelper
$caption = trim(preg_replace('/\s{2,}/', ' ', $caption));
// shorten to fit db
$caption = substr($caption, 0, 200);
// jsEscape just in case
return Util::jsEscape($caption);
return substr($caption, 0, 200);
}
}