Set default distance to ~20km

This commit is contained in:
Michael Mayer 2019-05-16 02:24:02 +02:00
parent 1cf23aac3e
commit a1f2146648

View file

@ -203,7 +203,7 @@ func (s *Search) Photos(form forms.PhotoSearchForm) (results []PhotoSearchResult
}
if form.Dist == 0 {
form.Dist = 1
form.Dist = 20
} else if form.Dist > 1000 {
form.Dist = 1000
}