Fix old soapbox.json failing
This commit is contained in:
parent
1be7fa8c15
commit
aa35e2ec46
2 changed files with 3 additions and 8 deletions
|
@ -40,12 +40,13 @@ const messages = defineMessages({
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
const me = state.get('me');
|
const me = state.get('me');
|
||||||
const getAccount = makeGetAccount();
|
const getAccount = makeGetAccount();
|
||||||
const patron = state.getIn(['soapbox', 'extensions', 'patron'], ImmutableMap());
|
const patronEnabled = state.getIn(['soapbox', 'extensions', 'patron', 'enabled']);
|
||||||
|
const patronUrl = state.getIn(['soapbox', 'extensions', 'patron', 'baseUrl']);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
account: getAccount(state, me),
|
account: getAccount(state, me),
|
||||||
sidebarOpen: state.get('sidebar').sidebarOpen,
|
sidebarOpen: state.get('sidebar').sidebarOpen,
|
||||||
patronUrl: patron.get('enabled') && patron.get('baseUrl'),
|
patronUrl: patronEnabled && patronUrl,
|
||||||
isStaff: isStaff(state.getIn(['accounts', me])),
|
isStaff: isStaff(state.getIn(['accounts', me])),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,12 +12,6 @@
|
||||||
"url": "https://blog.example.com"
|
"url": "https://blog.example.com"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"extensions": {
|
|
||||||
"patron": {
|
|
||||||
"enabled": false,
|
|
||||||
"baseUrl": "https://patron.example.com"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultSettings": {
|
"defaultSettings": {
|
||||||
"autoPlayGif": false,
|
"autoPlayGif": false,
|
||||||
"themeMode": "light"
|
"themeMode": "light"
|
||||||
|
|
Loading…
Reference in a new issue