GoToSocial/internal/ap
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
..
activitystreams_test.go [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
activitystreams.go [chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248) 2023-10-03 14:59:30 +01:00
ap_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
collections.go [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
extract.go [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
extractattachments_test.go [bugfix] Extract description as summary first, fall back to name (#2303) 2023-10-26 11:59:10 +02:00
extractcontent_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
extracthashtags_test.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
extractmentions_test.go [bugfix] Relax Mention parsing, allowing either href or name (#2320) 2023-10-31 11:05:17 +00:00
extractsensitive_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
extractvisibility_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
interfaces.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
normalize_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
normalize.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
properties.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
resolve_test.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
resolve.go [chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248) 2023-10-03 14:59:30 +01:00
serialize.go [bugfix] Ensure pre renders as expected, fix orderedCollectionPage (#2434) 2023-12-10 12:36:00 +01:00
util.go [feature] tentatively start adding polls support (#2249) 2023-10-04 13:09:42 +01:00