mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-01 03:36:12 -04:00
Ignore the fields on database when it's empty
This commit is contained in:
parent
e4798b90e8
commit
67dfeb2b50
@ -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
|
// CommentMetaData stores metadata for a comment, these data will not be changed once inserted into database
|
||||||
type CommentMetaData struct {
|
type CommentMetaData struct {
|
||||||
ProjectColumnID int64 `json:"project_column_id"`
|
ProjectColumnID int64 `json:"project_column_id,omitempty"`
|
||||||
ProjectColumnTitle string `json:"project_column_title"`
|
ProjectColumnTitle string `json:"project_column_title,omitempty"`
|
||||||
ProjectTitle string `json:"project_title"`
|
ProjectTitle string `json:"project_title,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Comment represents a comment in commit and issue page.
|
// Comment represents a comment in commit and issue page.
|
||||||
|
Loading…
Reference in New Issue
Block a user