gotosocial/internal/api/client
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
..
accounts [feature] Receive notification when followed account posts (if desired) (#1680) 2023-04-10 20:56:02 +01:00
admin [bugfix] Fix report serialization errors caused by user delete (#1659) 2023-03-31 15:01:29 +02:00
apps [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
blocks [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
bookmarks [chore] Refactor account deleting/block logic, tidy up some other processing things (#1599) 2023-03-20 18:10:08 +00:00
customemojis [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
favourites [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
featuredtags [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
filters [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
followrequests [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instance [bugfix] Return languages in api/v1/instance (#1741) 2023-05-06 22:38:19 +02:00
lists [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
media [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
notifications [bugfix] Rework notifs to use min_id for paging up (#1734) 2023-05-04 12:27:24 +02:00
preferences [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
reports [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
search [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statuses [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
streaming [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
timelines [bugfix/chore] Refactor timeline code (#1656) 2023-04-06 12:43:13 +01:00
user [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00