summaryrefslogtreecommitdiff
path: root/internal/processing/user/user.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-12-12 13:47:07 +0000
committerLibravatar GitHub <noreply@github.com>2023-12-12 13:47:07 +0000
commitac481925622df9bf8024d1b5726282d0214fd22b (patch)
treedebb07d995a352f8c34673c3bbfc1d71a17248ff /internal/processing/user/user.go
parent[bugfix] ensure the 'Closing' flag doesn't get cached (#2443) (diff)
downloadgotosocial-ac481925622df9bf8024d1b5726282d0214fd22b.tar.xz
[bugfix] poll vote count fixes (#2444)
* don't drop all vote counts if hideCounts is set, refactors poll option extraction slightly * omit voters_count when not set * make voters_count a ptr to ensure it is omit unless definitely needed * handle case of expires_at, voters_count and option.votes_count being nilable * faster isNil check * remove omitempty tags since mastodon API marks things as nullable but still sets them in outgoing json
Diffstat (limited to 'internal/processing/user/user.go')
0 files changed, 0 insertions, 0 deletions