GoToSocial/internal/api/util
kim cac9d65029
[performance] convert enum strings to ints (#3558)
* convert statuses.visibility and notifications.notification_type columns from type string -> int for performance / space savings

* fix test trying to compare string to int

* fix instance count query using string literal instead of gtsmodel const type

* ensure a default value is always set

* also migrate the account settings and sin bin status tables

* initialize maps outside loops and place into singular enum mapping creation func

* use int16 for enum types

* update sinbinstatus creation to be from a snapshot at initial creation

* add snapshot of poll type at creation time
2024-11-25 14:48:59 +01:00
..
errorhandling.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
mime.go [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
mime_test.go [bugfix] add stricter checks during all stages of dereferencing remote AS objects (#2639) 2024-02-14 12:13:38 +01:00
negotiate.go [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
negotiate_test.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
opengraph.go [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
opengraph_test.go [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
parseform.go [bugfix] Fix setting immediate `expires_at` value on filter endpoints (#3513) 2024-11-05 13:29:51 +01:00
parsequery.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
response.go [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
template.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00