drime: fix User.EntryPermissions JSON unmarshalling

`json:"entry_permissions"` is known to be either empty [] or of
structure {string: boolean}. This may have been a breaking API change on
Drime's side. Because EntryPermissions is not used, the type was changed
to `any` to capture both cases, otherwise we could implement custom
unmarshalling for that type.
This commit is contained in:
a1pcm
2026-04-09 16:32:41 -05:00
committed by Nick Craig-Wood
parent 5cd87e2d75
commit 08eecf4cc8

View File

@@ -21,7 +21,7 @@ type User struct {
Avatar string `json:"avatar"`
ModelType string `json:"model_type"`
OwnsEntry bool `json:"owns_entry"`
EntryPermissions []any `json:"entry_permissions"`
EntryPermissions any `json:"entry_permissions"`
DisplayName string `json:"display_name"`
}