Fix null image author
This commit is contained in:
parent
4c7cc44fb3
commit
66e6cea020
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user