Prevent null in captions...

This commit is contained in:
Nicolò P 2025-11-10 10:15:11 +01:00
parent 249a31d11a
commit ebea10059e

View File

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