Fix some server-side limits not being respected in web UI (#39163)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2026-05-26 11:51:25 +00:00
1 parent 0275a97888
commit f6d1795da5
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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);