People: Add "people" search alias for "faces" #22
This commit is contained in:
parent
c584424183
commit
ed89552631
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue