mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Fix caption bug #683
This commit is contained in:
parent
540f3fe390
commit
7317b354ee
@ -60,11 +60,11 @@ export class EmailMediaMessenger {
|
||||
for (let i = 0; i < media.length; ++i) {
|
||||
const thPath = await this.getThumbnail(media[i]);
|
||||
const linkUrl = Utils.concatUrls(Config.Server.publicUrl, '/gallery/', path.join(media[i].directory.path, media[i].directory.name));
|
||||
const location = (media[0].metadata as PhotoMetadata).positionData?.country ?
|
||||
(media[0].metadata as PhotoMetadata).positionData?.country :
|
||||
((media[0].metadata as PhotoMetadata).positionData?.city ?
|
||||
(media[0].metadata as PhotoMetadata).positionData?.city : '');
|
||||
const caption = (new Date(media[0].metadata.creationDate)).getFullYear() + (location ? ', ' + location : '');
|
||||
const location = (media[i].metadata as PhotoMetadata).positionData?.country ?
|
||||
(media[i].metadata as PhotoMetadata).positionData?.country :
|
||||
((media[i].metadata as PhotoMetadata).positionData?.city ?
|
||||
(media[i].metadata as PhotoMetadata).positionData?.city : '');
|
||||
const caption = (new Date(media[i].metadata.creationDate)).getFullYear() + (location ? ', ' + location : '');
|
||||
attachments.push({
|
||||
filename: media[i].name,
|
||||
path: thPath,
|
||||
|
Loading…
x
Reference in New Issue
Block a user