GoToSocial/internal/typeutils
kim ac48192562
[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
2023-12-12 13:47:07 +00:00
..
astointernal_test.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
astointernal.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
converter_test.go [bugfix] Add Actor to outgoing poll vote Create; other fixes (#2384) 2023-11-27 13:14:28 +00:00
converter.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
defaulticons.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
frontendtointernal.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
internal.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltoas_test.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltoas.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
internaltofrontend_test.go [bugfix] Ensure pre renders as expected, fix orderedCollectionPage (#2434) 2023-12-10 12:36:00 +01:00
internaltofrontend.go [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
internaltorss_test.go [bugfix] Use length in runes when trimming for RSS (#2094) 2023-08-10 18:26:56 +02:00
internaltorss.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
util_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
util.go [bugfix] Fix web media not showing as sensitive (#2433) 2023-12-09 16:54:38 +01:00
wrap_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
wrap.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00