Fix #167
This commit is contained in:
parent
914ffa496f
commit
25713ab209
3 changed files with 14 additions and 8 deletions
|
@ -44,6 +44,10 @@ type Issue struct {
|
|||
|
||||
func (i *Issue) GetPoster() (err error) {
|
||||
i.Poster, err = GetUserById(i.PosterId)
|
||||
if err == ErrUserNotExist {
|
||||
i.Poster = &User{Name: "FakeUser"}
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue