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
@@ -105,7 +105,7 @@ const mapStateToProps = state => ({
|
||||
hasComposingContents: state.getIn(['compose', 'text']).trim().length !== 0 || state.getIn(['compose', 'media_attachments']).size > 0 || state.getIn(['compose', 'poll']) !== null || state.getIn(['compose', 'quoted_status_id']) !== null,
|
||||
canUploadMore:
|
||||
!state.getIn(['compose', 'media_attachments']).some(x => ['audio', 'video'].includes(x.get('type')))
|
||||
&& state.getIn(['compose', 'media_attachments']).size < state.getIn(['server', 'server', 'configuration', 'statuses', 'max_media_attachments']),
|
||||
&& state.getIn(['compose', 'media_attachments']).size < state.getIn(['server', 'server', 'item', 'configuration', 'statuses', 'max_media_attachments']),
|
||||
isUploadEnabled:
|
||||
state.getIn(['compose', 'isDragDisabled']) !== true,
|
||||
firstLaunch: state.getIn(['settings', 'introductionVersion'], 0) < INTRODUCTION_VERSION,
|
||||
|
||||
Reference in new issue
Block a user