fix: harden workshop availability
This commit is contained in:
28 files changed
+671
-279
No files matched your search
@@ -69,7 +69,12 @@ function validateSubmission(record) {
|
||||
}
|
||||
|
||||
function snapshot(record) {
|
||||
return JSON.stringify(record.publicExport());
|
||||
const exported = record.publicExport();
|
||||
if (typeof exported.content === "string") {
|
||||
exported.contentLength = exported.content.length;
|
||||
delete exported.content;
|
||||
}
|
||||
return JSON.stringify(exported);
|
||||
}
|
||||
|
||||
function requireStaff(app, auth) {
|
||||
|
||||
Reference in new issue
Block a user