diff --git a/cmd/gen/generator/struct.go b/cmd/gen/generator/struct.go index a29b300..62706d7 100644 --- a/cmd/gen/generator/struct.go +++ b/cmd/gen/generator/struct.go @@ -91,6 +91,10 @@ func transformFieldName(s string) string { "Pm", "PM", "Totp", "TOTP", "2fa", "2FA", + "Png", "PNG", + "Uuid", "UUID", + "Wav", "WAV", + "Ap", "AP", ).Replace(s) return s } diff --git a/types/types.go b/types/types.go index 5a19c74..7ea2f69 100644 --- a/types/types.go +++ b/types/types.go @@ -60,8 +60,3 @@ func (lt *LemmyTime) UnmarshalJSON(b []byte) error { lt.Time = t return nil } - -type LemmyWebSocketMsg struct { - Op string `json:"op"` - Data json.RawMessage `json:"data"` -}