This will remove the ability to search for multiple folders.
This commit is contained in:
parent
d637637be6
commit
8516c749b7
1 changed files with 0 additions and 2 deletions
|
@ -231,8 +231,6 @@ func PhotoSearch(f form.PhotoSearch) (results PhotoResults, count int, err error
|
|||
|
||||
if strings.HasSuffix(p, "/") {
|
||||
s = s.Where("photos.photo_path = ?", p[:len(p)-1])
|
||||
} else if strings.Contains(p, ",") {
|
||||
s = s.Where("photos.photo_path IN (?)", strings.Split(p, ","))
|
||||
} else {
|
||||
s = s.Where("photos.photo_path LIKE ?", strings.ReplaceAll(p, "*", "%"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue