diff options
author | 2024-01-28 02:49:04 -0800 | |
---|---|---|
committer | 2024-01-28 11:49:04 +0100 | |
commit | 7e0a20317316cafb87dc06b60d0c83b3cac80896 (patch) | |
tree | fd5422a408ac168ebe236e97e27a6effa140f598 /internal/typeutils/internaltofrontend.go | |
parent | [docs] Rework storage (#2571) (diff) | |
download | gotosocial-7e0a20317316cafb87dc06b60d0c83b3cac80896.tar.xz |
[bugfix] Fix EmptyJSONObject/EmptyJSONArray (#2576)
* Fix EmptyJSONObject/EmptyJSONArray
These are meant to be the bytes representing an empty object and array in JSON: `{}` and `[]`. They are actually the strings `"{}"` and `"[]"`. This causes clients expecting an object or array to not be able to parse the response.
* Use json.RawMessage instead of []byte
Diffstat (limited to 'internal/typeutils/internaltofrontend.go')
0 files changed, 0 insertions, 0 deletions