From 91a4c8f6afc2112282c9f262bef5b6bb30a62535 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 8 Aug 2024 12:46:59 -0700 Subject: [PATCH] mstdn/ent.Poll --- ent/poll.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ent/poll.go b/ent/poll.go index b44ce17..1714d3d 100644 --- a/ent/poll.go +++ b/ent/poll.go @@ -1,7 +1,6 @@ package ent import ( - "github.com/reiver/go-json" "github.com/reiver/go-jsonint" "github.com/reiver/go-opt" "github.com/reiver/go-nul" @@ -17,9 +16,5 @@ type Poll struct { Options []PollOption `json:"options,omitempty"` Emojis []CustomEmoji `json:"emojis,omitempty"` Voted opt.Optional[bool] `json:"voted,omitempty"` - OwnVotes []jsonint.Int `json:"own_votes,omitempty"` -} - -func (receiver *Poll) MarshalJSON() ([]byte, error) { - return json.Marshal(*receiver) + OwnVotes []jsonint.Int `json:"own_votes,omitempty"` }