Fix old soapbox.json failing

This commit is contained in:
Alex Gleason 2020-07-02 18:16:41 -05:00
parent 1be7fa8c15
commit aa35e2ec46
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 8 deletions

View file

@ -40,12 +40,13 @@ const messages = defineMessages({
const mapStateToProps = state => {
const me = state.get('me');
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 {
account: getAccount(state, me),
sidebarOpen: state.get('sidebar').sidebarOpen,
patronUrl: patron.get('enabled') && patron.get('baseUrl'),
patronUrl: patronEnabled && patronUrl,
isStaff: isStaff(state.getIn(['accounts', me])),
};
};

View file

@ -12,12 +12,6 @@
"url": "https://blog.example.com"
}]
},
"extensions": {
"patron": {
"enabled": false,
"baseUrl": "https://patron.example.com"
}
},
"defaultSettings": {
"autoPlayGif": false,
"themeMode": "light"