From 448f5c6ab98e6def8cc8fe0fae498c75cf0fffc0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 23 Jun 2023 11:41:10 -0500 Subject: [PATCH] Fix media gallery being broken --- app/soapbox/selectors/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/soapbox/selectors/index.ts b/app/soapbox/selectors/index.ts index fbef8b79a..1c4e670f9 100644 --- a/app/soapbox/selectors/index.ts +++ b/app/soapbox/selectors/index.ts @@ -216,12 +216,9 @@ export const getAccountGallery = createSelector([ const status = statuses.get(statusId); if (!status) return medias; if (status.reblog) return medias; - if (typeof status.account !== 'string') return medias; - - const account = accounts.get(status.account); return medias.concat( - status.media_attachments.map(media => media.merge({ status, account }))); + status.media_attachments.map(media => media.merge({ status, account: status.account }))); }, ImmutableList()); });