mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user