mstdn/ent.Poll

master
Charles Iliya Krempeaux 2024-08-08 12:46:59 -07:00
parent 4e25b5277e
commit 91a4c8f6af
1 changed files with 1 additions and 6 deletions

View File

@ -1,7 +1,6 @@
package ent package ent
import ( import (
"github.com/reiver/go-json"
"github.com/reiver/go-jsonint" "github.com/reiver/go-jsonint"
"github.com/reiver/go-opt" "github.com/reiver/go-opt"
"github.com/reiver/go-nul" "github.com/reiver/go-nul"
@ -19,7 +18,3 @@ type Poll struct {
Voted opt.Optional[bool] `json:"voted,omitempty"` Voted opt.Optional[bool] `json:"voted,omitempty"`
OwnVotes []jsonint.Int `json:"own_votes,omitempty"` OwnVotes []jsonint.Int `json:"own_votes,omitempty"`
} }
func (receiver *Poll) MarshalJSON() ([]byte, error) {
return json.Marshal(*receiver)
}