Skip to content

Commit

Permalink
Fix tag search layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SmilyOrg committed Feb 17, 2024
1 parent b19a6fc commit 0cb3c5c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@ func (*Api) PostScenes(w http.ResponseWriter, r *http.Request) {
}
if data.Search != nil {
sceneConfig.Scene.Search = string(*data.Search)
if sceneConfig.Layout.Type != layout.Strip {
sceneConfig.Layout.Type = layout.Search
}
}

scene := sceneSource.Add(sceneConfig, imageSource)
Expand Down Expand Up @@ -439,9 +436,6 @@ func (*Api) GetScenes(w http.ResponseWriter, r *http.Request, params openapi.Get
}
if params.Search != nil {
sceneConfig.Scene.Search = string(*params.Search)
if sceneConfig.Layout.Type != layout.Strip {
sceneConfig.Layout.Type = layout.Search
}
}
collection := getCollectionById(string(params.CollectionId))
if collection == nil {
Expand Down

0 comments on commit 0cb3c5c

Please sign in to comment.