fix smoke tests

This commit is contained in:
Andrea Vos 2024-03-20 18:36:05 +01:00
parent 2dfcf737be
commit ceb7d49c06
2 changed files with 7 additions and 2 deletions

View File

@ -97,6 +97,9 @@ const lastPostId = {};
} catch {} } catch {}
for (const publisher of process.argv[3].split(',')) { for (const publisher of process.argv[3].split(',')) {
if (!publisher) {
continue;
}
console.log(`Publishing: ${publisher}`); console.log(`Publishing: ${publisher}`);
const postId = await publishers[publisher]( const postId = await publishers[publisher](
message, message,

View File

@ -101,10 +101,12 @@ const generateGallery = (_, itemsString) => {
const items = JSON.parse(`{${itemsString.replace(/"/g, '"').replace(/,\s*$/, '')}}`); const items = JSON.parse(`{${itemsString.replace(/"/g, '"').replace(/,\s*$/, '')}}`);
const label = (alt) => { const label = (alt) => {
if (!alt.startsWith('! ')) { return ''; } if (!alt.startsWith('! ')) {
return '';
}
return `<p class="small mt-2">${alt.substring(2)}</p>`; return `<p class="small mt-2">${alt.substring(2)}</p>`;
} };
const cells = Object.entries(items).map(([src, alt]) => ` const cells = Object.entries(items).map(([src, alt]) => `
<div class="col-6 col-lg-4 columnist-column mb-3"> <div class="col-6 col-lg-4 columnist-column mb-3">