mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
more on #1319
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user