mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
v4 migration, merge 'dev', clean code and mirror fix
This commit is contained in:
parent
e90f014e4a
commit
ee68a826a5
11 changed files with 349 additions and 240 deletions
|
@ -231,7 +231,7 @@ func (u *User) GetOrganizations() error {
|
|||
|
||||
u.Orgs = make([]*User, len(ous))
|
||||
for i, ou := range ous {
|
||||
u.Orgs[i], err = GetUserById(ou.OrgId)
|
||||
u.Orgs[i], err = GetUserById(ou.OrgID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -860,7 +860,7 @@ func UpdateMentions(userNames []string, issueId int64) error {
|
|||
}
|
||||
|
||||
for _, orgUser := range orgUsers {
|
||||
tempIds = append(tempIds, orgUser.Id)
|
||||
tempIds = append(tempIds, orgUser.ID)
|
||||
}
|
||||
|
||||
ids = append(ids, tempIds...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue