People: Add "people" search alias for "faces" #22

This commit is contained in:
Michael Mayer 2021-09-06 15:42:30 +02:00
parent c584424183
commit ed89552631
2 changed files with 6 additions and 0 deletions

View file

@ -57,6 +57,9 @@ func Geo(f form.GeoSearch) (results GeoResults, err error) {
case terms["faces"]:
f.Query = strings.ReplaceAll(f.Query, "faces", "")
f.Faces = "true"
case terms["people"]:
f.Query = strings.ReplaceAll(f.Query, "people", "")
f.Faces = "true"
case terms["videos"]:
f.Query = strings.ReplaceAll(f.Query, "videos", "")
f.Video = true

View file

@ -150,6 +150,9 @@ func PhotoSearch(f form.PhotoSearch) (results PhotoResults, count int, err error
case terms["faces"]:
f.Query = strings.ReplaceAll(f.Query, "faces", "")
f.Faces = "true"
case terms["people"]:
f.Query = strings.ReplaceAll(f.Query, "people", "")
f.Faces = "true"
case terms["videos"]:
f.Query = strings.ReplaceAll(f.Query, "videos", "")
f.Video = true