Fix gitea-action user avatar broken on edited menu (#29190)

Fix #29178
pull/29047/head
yp05327 9 months ago committed by GitHub
parent 69ed1a4afb
commit 8e2831611c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      models/issues/content_history.go

@ -161,7 +161,11 @@ func FetchIssueContentHistoryList(dbCtx context.Context, issueID, commentID int6
}
for _, item := range res {
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
if item.UserID > 0 {
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
} else {
item.UserAvatarLink = avatars.DefaultAvatarLink()
}
}
return res, nil
}

Loading…
Cancel
Save