From 7e42679478f58ac922ba5c03545b3baf0a592380 Mon Sep 17 00:00:00 2001
From: Justin
Date: Thu, 14 Apr 2022 14:15:32 -0400
Subject: [PATCH] Add meta tag for iOS banner
---
app/soapbox/containers/soapbox.js | 6 ++++++
app/soapbox/normalizers/soapbox/soapbox_config.ts | 1 +
2 files changed, 7 insertions(+)
diff --git a/app/soapbox/containers/soapbox.js b/app/soapbox/containers/soapbox.js
index c1a7db84e..ad14c6e7e 100644
--- a/app/soapbox/containers/soapbox.js
+++ b/app/soapbox/containers/soapbox.js
@@ -86,6 +86,7 @@ const mapStateToProps = (state) => {
locale: validLocale(locale) ? locale : 'en',
themeCss: generateThemeCss(soapboxConfig),
brandColor: soapboxConfig.get('brandColor'),
+ appleAppId: soapboxConfig.get('appleAppId'),
themeMode: settings.get('themeMode'),
singleUserMode,
};
@@ -108,6 +109,7 @@ class SoapboxMount extends React.PureComponent {
themeCss: PropTypes.string,
themeMode: PropTypes.string,
brandColor: PropTypes.string,
+ appleAppId: PropTypes.string,
dispatch: PropTypes.func,
singleUserMode: PropTypes.bool,
};
@@ -171,6 +173,10 @@ class SoapboxMount extends React.PureComponent {
{themeCss && }
+
+ {this.props.appleAppId && (
+
+ )}
diff --git a/app/soapbox/normalizers/soapbox/soapbox_config.ts b/app/soapbox/normalizers/soapbox/soapbox_config.ts
index a56c5e0ce..f2e8cfef8 100644
--- a/app/soapbox/normalizers/soapbox/soapbox_config.ts
+++ b/app/soapbox/normalizers/soapbox/soapbox_config.ts
@@ -75,6 +75,7 @@ export const CryptoAddressRecord = ImmutableRecord({
});
export const SoapboxConfigRecord = ImmutableRecord({
+ appleAppId: null,
logo: '',
banner: '',
brandColor: '', // Empty