gotosocial/internal/api/model
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
..
account.go [chore] Refactor account deleting/block logic, tidy up some other processing things (#1599) 2023-03-20 18:10:08 +00:00
admin.go [feature] Allow admins to send test emails (#1620) 2023-03-14 16:11:04 +00:00
announcement.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
announcementreaction.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
application.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
attachment.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
block.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
card.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
content.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
conversation.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
domain.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emoji.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojicategory.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
featuredtag.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
field.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
filter.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
history.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instance.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instancev1.go [bugfix] Return languages in api/v1/instance (#1741) 2023-05-06 22:38:19 +02:00
instancev2.go [chore] fix + update swagger docs (#1622) 2023-03-14 10:56:34 +01:00
list.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
marker.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
mention.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
notification.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
poll.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
preferences.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
pushsubscription.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
relationship.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
report.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
results.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
scheduledstatus.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
search.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
source.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
status.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
tag.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
token.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
user.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
well-known.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00