Skip to content

Commit

Permalink
fix(user): omit fields array when it's nil
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Aug 27, 2024
1 parent eb90d72 commit b62192b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/versia/actor_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type User struct {
DisplayName *string `json:"display_name,omitempty"`

// Fields is a list of fields that the user has filled out.
Fields []UserField `json:"fields"`
Fields []UserField `json:"fields,omitempty"`

// Username is the username of the user. Must be unique on the instance and match the following regex: ^[a-z0-9_-]+$
Username string `json:"username"`
Expand Down

0 comments on commit b62192b

Please sign in to comment.