Fix for Pleroma 2.1 and older versions regarding profile metadata
This commit is contained in:
parent
715779653c
commit
9c505d0d84
1 changed files with 3 additions and 1 deletions
|
@ -29,9 +29,11 @@ const messages = defineMessages({
|
|||
|
||||
const mapStateToProps = state => {
|
||||
const me = state.get('me');
|
||||
const maxFields = state.getIn(['instance', 'pleroma', 'metadata', 'fields_limits', 'max_fields']) ?
|
||||
state.getIn(['instance', 'pleroma', 'metadata', 'fields_limits', 'max_fields']) : state.getIn(['instance', 'pleroma', 'metadata', 'fieldsLimits', 'maxFields']);
|
||||
return {
|
||||
account: state.getIn(['accounts', me]),
|
||||
maxFields: state.getIn(['instance', 'pleroma', 'metadata', 'fields_limits', 'max_fields']),
|
||||
maxFields: maxFields,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue