Skip to content

Commit

Permalink
Default to not filtering bot edits (stashapp#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenanno authored and feederbox826 committed Nov 15, 2023
1 parent ce3fb29 commit c4d6681
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/sqlx/querybuilder_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,8 @@ func (qb *editQueryBuilder) buildQuery(filter models.EditQueryInput, userID uuid
query.AddArg(userID, userID, userID, userID, userID, userID)
}

if q := filter.IsBot; q != nil && *q {
query.Eq("bot", true)
} else {
query.Eq("bot", false)
if q := filter.IsBot; q != nil {
query.Eq("bot", *q)
}

if filter.Sort == models.EditSortEnumClosedAt || filter.Sort == models.EditSortEnumUpdatedAt {
Expand Down

0 comments on commit c4d6681

Please sign in to comment.