diff --git a/app/soapbox/components/status-list.tsx b/app/soapbox/components/status-list.tsx index 68dba32c6d..fb3b7aa936 100644 --- a/app/soapbox/components/status-list.tsx +++ b/app/soapbox/components/status-list.tsx @@ -189,7 +189,9 @@ const StatusList: React.FC = ({ if (statusId === null) { acc.push(renderLoadGap(index)); } else if (statusId.startsWith('末suggestions-')) { - acc.push(renderFeedSuggestions()); + if (soapboxConfig.feedInjection) { + acc.push(renderFeedSuggestions()); + } } else if (statusId.startsWith('末pending-')) { acc.push(renderPendingStatus(statusId)); } else { diff --git a/app/soapbox/features/soapbox-config/index.tsx b/app/soapbox/features/soapbox-config/index.tsx index 298788cdfa..3c8b85d333 100644 --- a/app/soapbox/features/soapbox-config/index.tsx +++ b/app/soapbox/features/soapbox-config/index.tsx @@ -52,6 +52,8 @@ const messages = defineMessages({ singleUserModeHint: { id: 'soapbox_config.single_user_mode_hint', defaultMessage: 'Front page will redirect to a given user profile.' }, singleUserModeProfileLabel: { id: 'soapbox_config.single_user_mode_profile_label', defaultMessage: 'Main user handle' }, singleUserModeProfileHint: { id: 'soapbox_config.single_user_mode_profile_hint', defaultMessage: '@handle' }, + feedInjectionLabel: { id: 'soapbox_config.feed_injection_label', defaultMessage: 'Feed injection' }, + feedInjectionHint: { id: 'soapbox_config.feed_injection_hint', defaultMessage: 'Inject the feed with additional content, such as suggested profiles.' }, }); type ValueGetter = (e: React.ChangeEvent) => any; @@ -261,6 +263,16 @@ const SoapboxConfig: React.FC = () => { /> + + e.target.checked)} + /> + + (), displayCta: true, + /** Whether to inject suggested profiles into the Home feed. */ + feedInjection: true, }, 'SoapboxConfig'); type SoapboxConfigMap = ImmutableMap;