Fix some more capitalization and remove WebsocketMsg

This commit is contained in:
Elara 2023-09-24 20:51:23 -07:00
parent f8a84454d8
commit 833745395f
2 changed files with 4 additions and 5 deletions

View File

@ -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
}

View File

@ -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"`
}