feat: Suppression des champs auteur lorsqu'ils sont vides
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Simon 2024-06-24 17:23:21 +02:00
parent 89843f2353
commit baf8c3f751
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ const config = {
if (!article.image_credit) delete article.image_credit if (!article.image_credit) delete article.image_credit
if (!article.vignette) delete article.vignette if (!article.vignette) delete article.vignette
if (!article.vignette_credit) delete article.vignette_credit if (!article.vignette_credit) delete article.vignette_credit
if (!article.auteur) delete article.auteur
if (!article.authors || article.authors.length == 0) { if (!article.authors || article.authors.length == 0) {
delete article.authors delete article.authors