Fix null image author

This commit is contained in:
Nicolò P 2024-12-06 15:31:05 +01:00
parent 4c7cc44fb3
commit 66e6cea020

View File

@ -243,8 +243,9 @@ UI.imageGallery = function (galleryId, images, video = false) {
if (element) {
let gallery = [];
for (let img of images) {
let author = img.author ? ` (${img.author})` : '';
let mediaObj = {
description: `${img.caption} (${img.author})`
description: img.caption + author
};
if (video) {