mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-02 16:43:19 -06:00
convert statuses.visibility and notifications.notification_type columns from type string -> int for performance / space savings
This commit is contained in:
parent
301543616b
commit
759df1240a
21 changed files with 586 additions and 84 deletions
|
|
@ -46,7 +46,7 @@ func (p *Processor) PreferencesGet(ctx context.Context, accountID string) (*apim
|
|||
func mastoPrefVisibility(vis gtsmodel.Visibility) string {
|
||||
switch vis {
|
||||
case gtsmodel.VisibilityPublic, gtsmodel.VisibilityDirect:
|
||||
return string(vis)
|
||||
return vis.String()
|
||||
case gtsmodel.VisibilityUnlocked:
|
||||
return "unlisted"
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue