Search: Ignore public album filter if "Private" feat is disabled #2570

This needs to be very well tested and discussed, as these changes can
lead to private photos being accidentally published. Thank you!

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-08-01 15:57:19 +02:00
parent 09da41996d
commit d8e0364dbb
91 changed files with 12475 additions and 500 deletions

View File

@@ -78,6 +78,12 @@ func SharePreview(router *gin.RouterGroup) {
f.Count = 12
f.Order = "relevance"
if err := f.ParseQueryString(); err != nil {
log.Errorf("preview: %s", err)
c.Redirect(http.StatusTemporaryRedirect, conf.SitePreview())
return
}
p, count, err := search.Photos(f)
if err != nil {