Optionally add tag to place photo
Some checks failed
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Failing after 56s

This commit is contained in:
2026-06-05 17:48:55 +04:00
parent 70d2fe1c6c
commit 200100686d
12 changed files with 542 additions and 0 deletions

View File

@@ -30,6 +30,11 @@ export function parsePlacePhotos(events) {
const allPhotos = [];
for (const event of sortedEvents) {
const eventTagValues = event.tags
.filter((t) => t[0] === 't')
.map((t) => t[1])
.filter(Boolean);
// Find all imeta tags
const imetas = event.tags.filter((t) => t[0] === 'imeta');
for (const imeta of imetas) {
@@ -70,6 +75,7 @@ export function parsePlacePhotos(events) {
isLandscape,
aspectRatio,
placeIdentifier,
tags: eventTagValues,
});
}
}