From 16da4a09e8bd7ce383487530b97ffa7dfa59b960 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Thu, 23 Mar 2023 05:17:29 +0100 Subject: [PATCH] Fix broken links in account gallery (#24218) --- .../features/account_gallery/components/media_item.jsx | 2 +- app/javascript/mastodon/selectors/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/features/account_gallery/components/media_item.jsx b/app/javascript/mastodon/features/account_gallery/components/media_item.jsx index 53b04acfd3..00526016d7 100644 --- a/app/javascript/mastodon/features/account_gallery/components/media_item.jsx +++ b/app/javascript/mastodon/features/account_gallery/components/media_item.jsx @@ -74,7 +74,7 @@ export default class MediaItem extends ImmutablePureComponent { if (['audio', 'video'].includes(attachment.get('type'))) { content = ( {attachment.get('description')} { - const status = statuses.get(statusId); - medias = medias.concat(status.get('media_attachments').map(media => media.set('status', status).set('account', account))); + const status = statuses.get(statusId).set('account', account); + medias = medias.concat(status.get('media_attachments').map(media => media.set('status', status))); }); return medias;