adds trail link sharing

This commit is contained in:
Christian Beutel
2025-08-20 16:51:33 +02:00
parent b3d44f3b78
commit 1e22c78c22
36 changed files with 598 additions and 36 deletions

View File

@@ -34,6 +34,7 @@ export enum Collection {
summit_logs = "summit_logs",
trail_like = "trail_like",
trail_share = "trail_share",
trail_link_share = "trail_link_share",
trails = "trails",
tags = "tags",
waypoints = "waypoints",

View File

@@ -81,7 +81,7 @@ export async function trail2gpx(trail: Trail, user?: AuthRecord) {
if (!trail.expand?.gpx_data) {
// no gpx_data -> empty trail?
// or just not expanded? -> expand now
const response = await trails_show(trail.id!, handleFromRecordWithIRI(trail), true);
const response = await trails_show(trail.id!, handleFromRecordWithIRI(trail), undefined, true);
if (!response.expand?.gpx_data) {
throw Error("Trail has no GPX data")