1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 01:34:43 +00:00

Fix viewing user subscriptions ()

Fix enumeration of user subscriptions. `watch.mode` is not a boolean but
a smallint.

Fixes 
Regression of 
This commit is contained in:
zenofile 2022-10-18 10:01:02 +02:00 committed by GitHub
parent 716fcfcf72
commit 20a5452ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1496,7 +1496,8 @@ func applySubscribedCondition(sess *xorm.Session, subscriberID int64) *xorm.Sess
builder.In("issue.repo_id", builder.
Select("id").
From("watch").
Where(builder.Eq{"user_id": subscriberID, "mode": true}),
Where(builder.And(builder.Eq{"user_id": subscriberID},
builder.In("mode", repo_model.WatchModeNormal, repo_model.WatchModeAuto))),
),
),
)