1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Minor fixes for #2766

This commit is contained in:
Unknwon 2016-03-06 13:24:42 -05:00
parent 922a6f13a3
commit 13bd16af92
4 changed files with 5 additions and 6 deletions

View file

@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true) ![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
##### Current version: 0.8.59 ##### Current version: 0.8.60
| Web | UI | Preview | | Web | UI | Preview |
|:-------------:|:-------:|:-------:| |:-------------:|:-------:|:-------:|

View file

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.8.59.0305" const APP_VER = "0.8.60.0306"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

View file

@ -348,14 +348,13 @@ func (u *User) UploadAvatar(data []byte) error {
// DeleteAvatar deletes the user's custom avatar. // DeleteAvatar deletes the user's custom avatar.
func (u *User) DeleteAvatar() error { func (u *User) DeleteAvatar() error {
log.Info("Deleting user avatar: %s", u.CustomAvatarPath()) log.Trace("DeleteAvatar[%d]: %s", u.Id, u.CustomAvatarPath())
os.Remove(u.CustomAvatarPath()) os.Remove(u.CustomAvatarPath())
u.UseCustomAvatar = false u.UseCustomAvatar = false
if err := UpdateUser(u); err != nil { if err := UpdateUser(u); err != nil {
return fmt.Errorf("updateUser: %v", err) return fmt.Errorf("UpdateUser: %v", err)
} }
return nil return nil
} }

View file

@ -1 +1 @@
0.8.59.0305 0.8.60.0306