mirror of
1
Fork 0
gotosocial/internal/api/model
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
..
account.go [feature] Support setting private notes on accounts (#1982) 2023-07-27 10:30:39 +02:00
admin.go [feature] Add `/api/v1/admin/debug/apurl` endpoint (#2359) 2023-11-27 14:02:52 +00:00
announcement.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
announcementreaction.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
application.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
attachment.go [chore/frontend] Refactor status templates slightly, put polls behind CWs if present (#2419) 2023-12-05 12:43:07 +01:00
block.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
card.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
content.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
conversation.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
domain.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
emoji.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojicategory.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
featuredtag.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
field.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
filter.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
history.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instance.go [Frontend] Settings for profile fields (#1885) 2023-06-13 12:21:26 +02:00
instancev1.go [bugfix] serialize instance terms via API (#2293) 2023-10-24 14:23:22 +02:00
instancev2.go [bugfix] serialize instance terms via API (#2293) 2023-10-24 14:23:22 +02:00
list.go [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
marker.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
mention.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
multistatus.go [chore/bugfix] Domain block tidying up, Implement first pass of `207 Multi-Status` (#1886) 2023-07-07 11:34:12 +02:00
notification.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
poll.go [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
preferences.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
pushsubscription.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
relationship.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
report.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
results.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
rule.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
scheduledstatus.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
search.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
source.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
status.go [bugfix] Fix web media not showing as sensitive (#2433) 2023-12-09 16:54:38 +01:00
tag.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
token.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
user.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
well-known.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00