Merge pull request #507 from tabacha/bug-506

Add Source to thumbnail image. Perhabs a fix to #506 untested.
This commit is contained in:
Evgenii Burmakin 2024-12-09 21:01:34 +01:00 committed by GitHub
commit 606c94630c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -802,7 +802,7 @@ export default class extends Controller {
createPhotoMarker(photo) {
if (!photo.exifInfo?.latitude || !photo.exifInfo?.longitude) return;
const thumbnailUrl = `/api/v1/photos/${photo.id}/thumbnail.jpg?api_key=${this.apiKey}`;
const thumbnailUrl = `/api/v1/photos/${photo.id}/thumbnail.jpg?api_key=${this.apiKey}&source=${photo.source}`;
const icon = L.divIcon({
className: 'photo-marker',