fix(api): 🐛 Add missing attributes to /api/v1/instance

This commit is contained in:
Jesse Wierzbinski 2025-01-29 16:05:04 +01:00
parent 2f61cd8f0a
commit f60663506a
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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: "",