mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
places: show the community's published pictures first in Pick a picture
The service delivers the pictures review approved for a place, but TREK never read them. A new TrekCommunityService in the maps domain asks the TREK Places API for them (the index row for a gers place, /v1/community for an OSM one), accepts only paths of the service's picture store, and fetches the bytes with the installation's key, capped at 4 MB. Enrichment puts them ahead of Google and Commons, through the same photo cache, credited as TREK Community under CC BY 4.0. The enrichment cache now follows the community version for OSM places too, so a newly approved picture shows on the next open. Also lowers the client's no-non-null-assertion baseline to 380: moving Use this text into the description card removed two.
This commit is contained in:
@@ -159,7 +159,7 @@ export type MapsResolveUrlResult = z.infer<typeof mapsResolveUrlResultSchema>;
|
||||
* Everything nullable is genuinely optional per source — Commons gives us a
|
||||
* licence and an author, Google gives us neither in a form we may reproduce.
|
||||
*/
|
||||
export const placePhotoSourceSchema = z.enum(['google', 'wikimedia', 'wikipedia', 'cached']);
|
||||
export const placePhotoSourceSchema = z.enum(['google', 'wikimedia', 'wikipedia', 'cached', 'community']);
|
||||
export type PlacePhotoSource = z.infer<typeof placePhotoSourceSchema>;
|
||||
|
||||
export const placePhotoCandidateSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user