diff --git a/scripts/build.js b/scripts/build.js index ccaf4b2b3..1f63f50aa 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -255,19 +255,19 @@ try { }, { src: './customize.dist/contact.html', - dest: './contact.html', + dest: './www/contact.html', url: '/contact.html', title: getKey('og_contact', [instance]), }, { src: './customize.dist/features.html', - dest: './features.html', + dest: './www/features.html', url: '/features.html', title: getKey((config.allow_subscriptions? 'og_pricing': 'og_features'), [instance]), }, { src: './customize.dist/index.html', - dest: './index.html', + dest: './www/index.html', url: '/index.html', title: getKey('og_default'), } diff --git a/scripts/test-metadata.js b/scripts/test-metadata.js new file mode 100644 index 000000000..42b93f096 --- /dev/null +++ b/scripts/test-metadata.js @@ -0,0 +1,27 @@ +var Meta = require("../lib/metadata"); + +var lines = [ + { + "validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=", + "owners":[ + "BpL3pEyX2IlfsvxQELB9uz5qh+40re0gD6J6LOobBm8=" + ], + "channel":"771cefbdf2e62543388f1f7acb0338c1", + "created":1628512619236 + }, + { + "validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=", + "channel":"771cefbdf2e62543388f1f7acb0338c1", + "created":1628512619236 + } +]; + + +var ref = {}; +var lineHandler = Meta.createLineHandler(ref, console.log); + +lines.forEach(line => { + lineHandler(void 0, line); +}); + +console.log(ref); diff --git a/www/checkup/main.js b/www/checkup/main.js index 65ddf01af..12149a8aa 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -1422,6 +1422,8 @@ define([ [ '/', + '/index.html', + '/contact.html', '/code/', '/pad/index.html', ].forEach(url => { @@ -1456,7 +1458,7 @@ define([ h('p', [ link(url, url), ' is missing several attributes which provide better previews on social media sites and messengers. ', - "The administrator of this instance can generate them with ", code('npm run make-opengraph'), '.', + "The administrator of this instance can generate them with ", code('npm run build'), '.', ]), h('p', "Missing attributes: "), h('ul', missing.map(q => h('li', h('code', q)))),