Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(files): prepend /uploads/avatars/ to avatar URL in documents tab

jubnl18eee16d2db1
diff --git a/server/src/services/fileService.ts b/server/src/services/fileService.ts
index 04ed311b5..288a58db5 100644
--- a/server/src/services/fileService.ts
+++ b/server/src/services/fileService.ts
@@ -42,6 +42,7 @@ export function formatFile(file: TripFile & { trip_id?: number }) {
return {
...file,
url: `/api/trips/${tripId}/files/${file.id}/download`,
+ uploaded_by_avatar: file.uploaded_by_avatar ? `/uploads/avatars/${file.uploaded_by_avatar}` : null,
};
}