Fix some server-side limits not being respected in web UI (#39163)
This commit is contained in:
1 parent
0275a97888
commit
f6d1795da5
4 files changed
+4
-4
No files matched your search
@@ -327,7 +327,7 @@ export function uploadCompose(files) {
|
||||
dispatch(showAlert({ message: messages.uploadQuote }));
|
||||
return;
|
||||
}
|
||||
const uploadLimit = getState().getIn(['server', 'server', 'configuration', 'statuses', 'max_media_attachments']);
|
||||
const uploadLimit = getState().getIn(['server', 'server', 'item', 'configuration', 'statuses', 'max_media_attachments']);
|
||||
const media = getState().getIn(['compose', 'media_attachments']);
|
||||
const pending = getState().getIn(['compose', 'pending_media_attachments']);
|
||||
const progress = new Array(files.length).fill(0);
|
||||
|
||||
Reference in new issue
Block a user