From 867206c6834cc143afd286259435d362e7cdcccc Mon Sep 17 00:00:00 2001 From: Echo Date: Tue, 8 Sep 2026 11:24:49 +0000 Subject: [PATCH] Status redesign: Fixes bug with media modal (#40423) --- .../mastodon/components/status/attachments.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status/attachments.tsx b/app/javascript/mastodon/components/status/attachments.tsx index bde46e53641..a91670adc73 100644 --- a/app/javascript/mastodon/components/status/attachments.tsx +++ b/app/javascript/mastodon/components/status/attachments.tsx @@ -142,11 +142,16 @@ const MediaAttachments: React.FC<{ dispatch( openModal({ modalType: 'MEDIA', - modalProps: { statusId, media: attachment, index, lang: language }, + modalProps: { + statusId, + media: immutableAttachments, + index, + lang: language, + }, }), ); }, - [attachment, dispatch, language, statusId], + [immutableAttachments, dispatch, language, statusId], ); const handleOpenVideo = useCallback( (options: {