mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
fix smoke tests
This commit is contained in:
parent
2dfcf737be
commit
ceb7d49c06
@ -97,6 +97,9 @@ const lastPostId = {};
|
||||
} catch {}
|
||||
|
||||
for (const publisher of process.argv[3].split(',')) {
|
||||
if (!publisher) {
|
||||
continue;
|
||||
}
|
||||
console.log(`Publishing: ${publisher}`);
|
||||
const postId = await publishers[publisher](
|
||||
message,
|
||||
|
@ -101,10 +101,12 @@ const generateGallery = (_, itemsString) => {
|
||||
const items = JSON.parse(`{${itemsString.replace(/"/g, '"').replace(/,\s*$/, '')}}`);
|
||||
|
||||
const label = (alt) => {
|
||||
if (!alt.startsWith('! ')) { return ''; }
|
||||
if (!alt.startsWith('! ')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return `<p class="small mt-2">${alt.substring(2)}</p>`;
|
||||
}
|
||||
};
|
||||
|
||||
const cells = Object.entries(items).map(([src, alt]) => `
|
||||
<div class="col-6 col-lg-4 columnist-column mb-3">
|
||||
|
Loading…
x
Reference in New Issue
Block a user