Fix some more capitalization and remove WebsocketMsg
This commit is contained in:
parent
f8a84454d8
commit
833745395f
@ -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
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user