committed by
marcin mikołajczak
parent
8a2f6d251e
commit
1087edbc69
@@ -104,7 +104,7 @@ const updateSoapboxConfig = (data: Record<string, any>) =>
|
||||
group: ':pleroma',
|
||||
key: ':frontend_configurations',
|
||||
value: [{
|
||||
tuple: [':soapbox_fe', data],
|
||||
tuple: [':pl_fe', data],
|
||||
}],
|
||||
}];
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const SETTING_CHANGE = 'SETTING_CHANGE' as const;
|
||||
const SETTING_SAVE = 'SETTING_SAVE' as const;
|
||||
const SETTINGS_UPDATE = 'SETTINGS_UPDATE' as const;
|
||||
|
||||
const FE_NAME = 'soapbox_fe';
|
||||
const FE_NAME = 'pl_fe';
|
||||
|
||||
/** Options when changing/saving settings. */
|
||||
type SettingOpts = {
|
||||
|
||||
@@ -61,9 +61,9 @@ const fetchSoapboxConfig = (host: string | null) =>
|
||||
|
||||
if (features.frontendConfigurations) {
|
||||
return dispatch(fetchFrontendConfigurations()).then(data => {
|
||||
if (data.soapbox_fe) {
|
||||
dispatch(importSoapboxConfig(data.soapbox_fe, host));
|
||||
return data.soapbox_fe;
|
||||
if (data.pl_fe) {
|
||||
dispatch(importSoapboxConfig(data.pl_fe, host));
|
||||
return data.pl_fe;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user