mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-31 03:14:17 +09:00
fix random avatars (#1147)
This commit is contained in:
1 parent
af9998b8a7
commit
5d40db629c
2 files changed
+11
-1
No files matched your search
+3
-1
@@ -135,7 +135,9 @@ func CreateOrganization(org, owner *User) (err error) {
|
||||
if _, err = sess.Insert(org); err != nil {
|
||||
return fmt.Errorf("insert organization: %v", err)
|
||||
}
|
||||
org.GenerateRandomAvatar()
|
||||
if err = org.generateRandomAvatar(sess); err != nil {
|
||||
return fmt.Errorf("generate random avatar: %v", err)
|
||||
}
|
||||
|
||||
// Add initial creator to organization and owner team.
|
||||
if _, err = sess.Insert(&OrgUser{
|
||||
|
||||
Reference in new issue
Block a user