Prevent null in captions...
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user