gotosocial/internal/typeutils
Daenney b7dd32da42
[bugfix] Return languages in api/v1/instance (#1741)
It turns out that in Masto v2.3.0 the languages key was added to the V1
Instance and that it's effectively mandatory. Though in GtS we don't
really have this concept yet, some apps will explode if the languages
key is missing altogether. So at least return the empty array on V1 too
in the hopes that it makes things work well enough.

For history's sake, you can see the attributes that will get serialised
in
f877aa9d70/app/serializers/rest/v1/instance_serializer.rb (L6-L9).
Because the attribute does not have a conditional defined for it,
there isn't a filter that optionally omits it, or a def languages to
modify the behaviour the attribute is effectively always included and
serialised.

Fixes: #1662
2023-05-06 22:38:19 +02:00
..
astointernal.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
astointernal_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
converter.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
converter_test.go [bugfix] Fix report serialization errors caused by user delete (#1659) 2023-03-31 15:01:29 +02:00
defaulticons.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
frontendtointernal.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
internal.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
internaltoas.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
internaltoas_test.go [bugfix] Always serialize orderedItems as array (#1673) 2023-04-06 12:16:53 +01:00
internaltofrontend.go [bugfix] Fix report serialization errors caused by user delete (#1659) 2023-03-31 15:01:29 +02:00
internaltofrontend_test.go [bugfix] Return languages in api/v1/instance (#1741) 2023-05-06 22:38:19 +02:00
internaltorss.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
internaltorss_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
util.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
util_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
wrap.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
wrap_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00