From 440b695b79b6d748d31def951c0da52af22da538 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 24 Sep 2024 20:54:24 +0200 Subject: [PATCH] Fix polls not being displayed in detailed status (#2857) --- .../features/status/components/detailed_status.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx index 11306afb61..5a70707179 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx @@ -21,6 +21,7 @@ import { Permalink } from 'flavours/glitch/components/permalink'; import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder'; import { useAppHistory } from 'flavours/glitch/components/router'; import { VisibilityIcon } from 'flavours/glitch/components/visibility_icon'; +import PollContainer from 'flavours/glitch/containers/poll_container'; import { useAppSelector } from 'flavours/glitch/store'; import { Avatar } from '../../../components/avatar'; @@ -277,6 +278,17 @@ export const DetailedStatus: React.FC<{ mediaIcons.push('link'); } + if (status.get('poll')) { + contentMedia.push( + , + ); + contentMediaIcons.push('tasks'); + } + if (status.get('application')) { applicationLink = ( <>