gotosocial/internal
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
..
ap [bugfix] Fix remaining mangled URI escaping issues in statuses + accounts (#1712) 2023-04-26 16:17:22 +01:00
api [bugfix] Return languages in api/v1/instance (#1741) 2023-05-06 22:38:19 +02:00
cache [performance] replace domain block cache with an in-memory radix trie (#1714) 2023-05-01 12:36:46 +02:00
config [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
db [bugfix] Rework notifs to use min_id for paging up (#1734) 2023-05-04 12:27:24 +02:00
email [bugfix] add From to email header (#1717) 2023-04-29 11:47:14 +02:00
federation [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00
gotosocial [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
gtscontext [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00
gtserror [feature] Allow admins to send test emails (#1620) 2023-03-14 16:11:04 +00:00
gtsmodel [bugfix] Add proper constraints on status faves, dedupe (#1674) 2023-04-05 20:10:05 +02:00
httpclient [bugfix] tweak httpclient error handling again ... (#1721) 2023-04-30 10:11:18 +02:00
id [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
iotools [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
log [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
media [performance] tweak http client error handling (#1718) 2023-04-29 18:44:20 +02:00
messages [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
middleware [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00
netutil [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oauth [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oidc [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
processing [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
regexes [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
router [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
state [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
storage [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
stream [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
text [performance] refactoring + add fave / follow / request / visibility caching (#1607) 2023-03-28 14:03:14 +01:00
timeline [bugfix/chore] Refactor timeline code (#1656) 2023-04-06 12:43:13 +01:00
trans [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
transport [bugfix] Serve correct 'application/jrd+json' content type for webfinger requests (#1738) 2023-05-04 12:28:50 +02:00
typeutils [bugfix] Return languages in api/v1/instance (#1741) 2023-05-06 22:38:19 +02:00
uris [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
util [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
validate [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
visibility [bugfix] Fix single author threads not appearing in home timeline (#1679) 2023-04-08 12:56:55 +02:00
web [bugfix] Fix invalid og:description on account w/ empty note (#1733) 2023-05-03 16:18:34 +02:00
workers [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00