gotosocial/internal/api/client/accounts
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
..
account_test.go
accountalias.go
accountcreate.go
accountcreate_test.go
accountdelete.go
accountdelete_test.go [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00
accountget.go
accountget_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
accountmove.go
accounts.go
accountupdate.go [feature/frontend] Add options to include Unlisted posts or hide all posts (#3272) 2024-09-09 18:07:25 +02:00
accountupdate_test.go [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00
accountverify.go
accountverify_test.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
block.go
block_test.go
follow.go
follow_test.go
followers.go
following.go
lists.go
lists_test.go [feature] Implement exclusive lists (#3280) 2024-09-09 15:56:58 -07:00
lookup.go
mute.go [bugfix] Fix setting immediate expires_at value on filter endpoints (#3513) 2024-11-05 13:29:51 +01:00
mute_test.go
note.go
profile.go
profile_test.go [chore/frontend] Use smaller webp images for logo and default avatars (#3119) 2024-07-20 14:02:22 +01:00
relationships.go
search.go
search_test.go
statuses.go
statuses_test.go [bugfix] visibility after implicit approval not getting invalidated (#3370) 2024-09-28 22:47:46 +02:00
themesget.go
unblock.go
unfollow.go
unmute.go
unmute_test.go