This commit is contained in:
Unknwon committed 2015-08-15 02:54:39 +08:00
1 parent 30b428bf0e
commit a24141ec9c
4 files changed
+13 -7

No files matched your search

+2 -1
View File
@@ -108,7 +108,8 @@ func (i *Issue) IsPoster(uid int64) bool {
func (i *Issue) GetPoster() (err error) {
i.Poster, err = GetUserByID(i.PosterID)
if IsErrUserNotExist(err) {
i.Poster = &User{Name: "Someone"}
i.PosterID = -1
i.Poster = NewFakeUser()
return nil
}
return err