mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
Mirror fix
This commit is contained in:
@@ -387,7 +387,7 @@ func UpdateRepository(repo *Repository) error {
|
||||
repo.Website = repo.Website[:255]
|
||||
}
|
||||
|
||||
_, err := orm.Id(repo.Id).UseBool().Cols("description", "website").Update(repo)
|
||||
_, err := orm.Id(repo.Id).UseBool().Cols("description", "website", "updated").Update(repo)
|
||||
return err
|
||||
}
|
||||
|
||||
|
@@ -211,7 +211,7 @@ func UpdateUser(user *User) (err error) {
|
||||
user.Website = user.Website[:255]
|
||||
}
|
||||
|
||||
_, err = orm.Id(user.Id).UseBool().Cols("website", "location", "is_active", "is_admin").Update(user)
|
||||
_, err = orm.Id(user.Id).UseBool().Cols("email", "passwd", "avatar", "avatar_email", "website", "location", "is_active", "is_admin", "updated").Update(user)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user