1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-29 01:45:30 +00:00

Ignore the fields on database when it's empty

This commit is contained in:
Lunny Xiao 2024-02-29 10:34:23 +08:00
parent e4798b90e8
commit 67dfeb2b50

View File

@ -224,9 +224,9 @@ func (r RoleInRepo) LocaleHelper(lang translation.Locale) string {
// CommentMetaData stores metadata for a comment, these data will not be changed once inserted into database
type CommentMetaData struct {
ProjectColumnID int64 `json:"project_column_id"`
ProjectColumnTitle string `json:"project_column_title"`
ProjectTitle string `json:"project_title"`
ProjectColumnID int64 `json:"project_column_id,omitempty"`
ProjectColumnTitle string `json:"project_column_title,omitempty"`
ProjectTitle string `json:"project_title,omitempty"`
}
// Comment represents a comment in commit and issue page.