mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Fix Mastodon InstanceV2 structure needs image max size under mediaAttachment
This commit is contained in:
parent
6e94220642
commit
c609affeca
3 changed files with 8 additions and 9 deletions
|
@ -112,10 +112,11 @@ class InstanceV2 extends BaseApi
|
|||
$this->config->get('config', 'max_import_size')
|
||||
));
|
||||
|
||||
$image_size_limit = $this->config->get('system', 'maximagesize');
|
||||
|
||||
return new InstanceEntity\Configuration(
|
||||
$statuses_config,
|
||||
new InstanceEntity\MediaAttachmentsConfig(Images::supportedTypes()),
|
||||
$this->config->get('system', 'maximagesize')
|
||||
new InstanceEntity\MediaAttachmentsConfig(Images::supportedTypes(), $image_size_limit),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue