diff --git a/packages/pl-fe/src/layouts/home-layout.tsx b/packages/pl-fe/src/layouts/home-layout.tsx index 37f26690a..2848a739a 100644 --- a/packages/pl-fe/src/layouts/home-layout.tsx +++ b/packages/pl-fe/src/layouts/home-layout.tsx @@ -26,6 +26,7 @@ import { useFeatures } from 'pl-fe/hooks/use-features'; import { useIsMobile } from 'pl-fe/hooks/use-is-mobile'; import { useOwnAccount } from 'pl-fe/hooks/use-own-account'; import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config'; +import { useSettings } from 'pl-fe/hooks/use-settings'; interface IHomeLayout { children: React.ReactNode; @@ -39,6 +40,7 @@ const HomeLayout: React.FC = ({ children }) => { const { account } = useOwnAccount(); const features = useFeatures(); const plFeConfig = usePlFeConfig(); + const { disableUserProvidedMedia } = useSettings(); const composeId = 'home'; const composeBlock = useRef(null); @@ -69,9 +71,11 @@ const HomeLayout: React.FC = ({ children }) => { > - - - + {!disableUserProvidedMedia && ( + + + + )}