mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
Followup fix for previous query fix
This commit is contained in:
parent
7f26ae0b45
commit
746c7fd4e7
|
@ -552,10 +552,10 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
|
|||
}
|
||||
|
||||
if opts.IsMention {
|
||||
sess.Join("INNER", "issue_user", "issue.id = issue_user.issue_id AND issue_user.is_mentioned = 1")
|
||||
sess.Join("INNER", "issue_user", "issue.id = issue_user.issue_id").And("issue_user.is_mentioned = ?", true)
|
||||
|
||||
if opts.UserID > 0 {
|
||||
sess.Where("issue_user.uid = ?", opts.UserID)
|
||||
sess.And("issue_user.uid = ?", opts.UserID)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue