diff --git a/app/index.ejs b/app/index.ejs
index 17cf261c3..0f3ec664c 100644
--- a/app/index.ejs
+++ b/app/index.ejs
@@ -9,33 +9,6 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/soapbox/features/ui/components/link_footer.js b/app/soapbox/features/ui/components/link_footer.js
index 7861242b0..00ca4a8e2 100644
--- a/app/soapbox/features/ui/components/link_footer.js
+++ b/app/soapbox/features/ui/components/link_footer.js
@@ -6,10 +6,11 @@ import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { logOut } from 'soapbox/actions/auth';
+import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import { Text } from 'soapbox/components/ui';
import emojify from 'soapbox/features/emoji/emoji';
import { getBaseURL } from 'soapbox/utils/accounts';
-// import sourceCode from 'soapbox/utils/code';
+import sourceCode from 'soapbox/utils/code';
import { getFeatures } from 'soapbox/utils/features';
import { openModal } from '../../../actions/modals';
@@ -19,9 +20,11 @@ const mapStateToProps = state => {
const account = state.getIn(['accounts', me]);
const instance = state.get('instance');
const features = getFeatures(instance);
+ const soapboxConfig = getSoapboxConfig(state);
return {
account,
+ soapboxConfig,
profileDirectory: features.profileDirectory,
federating: features.federating,
showAliases: features.accountAliasesAPI,
@@ -41,7 +44,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
},
});
-const LinkFooter = ({ onOpenHotkeys, account, profileDirectory, federating, showAliases, importAPI, onClickLogOut, baseURL }) => (
+const LinkFooter = ({ onOpenHotkeys, account, profileDirectory, federating, showAliases, importAPI, onClickLogOut, baseURL, soapboxConfig }) => (
{account && <>
@@ -68,26 +71,29 @@ const LinkFooter = ({ onOpenHotkeys, account, profileDirectory, federating, show
- {/*{sourceCode.repository},
- code_version: sourceCode.version,
- }}
- />*/}
- }}
- />
+ {soapboxConfig.get('linkFooterMessage') ? (
+
+ ) : (
+ {sourceCode.repository},
+ code_version: sourceCode.version,
+ }}
+ />
+ )}
);
LinkFooter.propTypes = {
account: ImmutablePropTypes.map,
+ soapboxConfig: ImmutablePropTypes.map,
profileDirectory: PropTypes.bool,
federating: PropTypes.bool,
showAliases: PropTypes.bool,