mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-04 17:34:49 -04:00
Bug fix
This commit is contained in:
parent
8b6766ecbe
commit
e05b1385fb
4 changed files with 9 additions and 9 deletions
|
@ -174,15 +174,15 @@ func NewIssueUserPairs(rid, iid, oid, uid, aid int64) (err error) {
|
|||
}
|
||||
|
||||
// In case owner is not watching.
|
||||
ws = append(ws, &Watch{Uid: id})
|
||||
ws = append(ws, &Watch{UserId: id})
|
||||
}
|
||||
|
||||
for _, w := range ws {
|
||||
if w.Uid == 0 {
|
||||
if w.UserId == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
iu.Uid = w.Uid
|
||||
iu.Uid = w.UserId
|
||||
iu.IsPoster = iu.Uid == uid
|
||||
iu.IsAssigned = iu.Uid == aid
|
||||
if _, err = orm.Insert(iu); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue