mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 05:07:43 +00:00
omit live activity fields when they're empty
This commit is contained in:
parent
2352e146c3
commit
6e668e538c
1 changed files with 5 additions and 5 deletions
|
@ -24,11 +24,11 @@ import (
|
||||||
type DynamicIslandNotification struct {
|
type DynamicIslandNotification struct {
|
||||||
PostCommentCount int `json:"postTotalComments"`
|
PostCommentCount int `json:"postTotalComments"`
|
||||||
PostScore int64 `json:"postScore"`
|
PostScore int64 `json:"postScore"`
|
||||||
CommentID string `json:"commentId"`
|
CommentID string `json:"commentId,omitempty"`
|
||||||
CommentAuthor string `json:"commentAuthor"`
|
CommentAuthor string `json:"commentAuthor,omitempty"`
|
||||||
CommentBody string `json:"commentBody"`
|
CommentBody string `json:"commentBody,omitempty"`
|
||||||
CommentAge int64 `json:"commentAge"`
|
CommentAge int64 `json:"commentAge,omitempty"`
|
||||||
CommentScore int64 `json:"commentScore"`
|
CommentScore int64 `json:"commentScore,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type liveActivitiesWorker struct {
|
type liveActivitiesWorker struct {
|
||||||
|
|
Loading…
Reference in a new issue