mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Add missing attributes to /api/v1/instance
This commit is contained in:
parent
2f61cd8f0a
commit
f60663506a
|
|
@ -86,6 +86,7 @@ max_emoji_description_size = 1000
|
||||||
- Fixed several issues with the [ActivityPub Federation Bridge](https://github.com/versia-pub/activitypub) preventing it from operating properly.
|
- Fixed several issues with the [ActivityPub Federation Bridge](https://github.com/versia-pub/activitypub) preventing it from operating properly.
|
||||||
- Fixed incorrect content-type on some media when using S3.
|
- Fixed incorrect content-type on some media when using S3.
|
||||||
- All media content-type is now correctly fetched, instead of guessed from the file extension.
|
- All media content-type is now correctly fetched, instead of guessed from the file extension.
|
||||||
|
- Added missing attributes to `/api/v1/instance` (some clients were expecting them).
|
||||||
|
|
||||||
# `0.7.0` • The Auth and APIs Update
|
# `0.7.0` • The Auth and APIs Update
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,17 @@ export default apiRoute((app) =>
|
||||||
max_media_attachments:
|
max_media_attachments:
|
||||||
config.validation.max_media_attachments,
|
config.validation.max_media_attachments,
|
||||||
},
|
},
|
||||||
|
media_attachments: {
|
||||||
|
supported_mime_types: config.validation.allowed_mime_types,
|
||||||
|
image_size_limit: config.validation.max_media_size,
|
||||||
|
image_matrix_limit: config.validation.max_media_size,
|
||||||
|
video_size_limit: config.validation.max_media_size,
|
||||||
|
video_frame_rate_limit: config.validation.max_media_size,
|
||||||
|
video_matrix_limit: config.validation.max_media_size,
|
||||||
|
},
|
||||||
|
accounts: {
|
||||||
|
max_featured_tags: 100,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
description: config.instance.description,
|
description: config.instance.description,
|
||||||
email: "",
|
email: "",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue