mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
Support bot user
This commit is contained in:
@@ -351,7 +351,7 @@ func (c *Comment) LoadPoster(ctx context.Context) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
c.Poster, err = user_model.GetUserByIDCtx(ctx, c.PosterID)
|
||||
c.Poster, err = user_model.GetPossbileUserByID(ctx, c.PosterID)
|
||||
if err != nil {
|
||||
if user_model.IsErrUserNotExist(err) {
|
||||
c.PosterID = -1
|
||||
|
Reference in New Issue
Block a user