From d62232b83bc6d3347f24dcf53ce7392625ed7c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 28 Jun 2024 19:54:29 +0200 Subject: [PATCH] Groups fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/features/group/components/group-header.tsx | 2 +- src/features/placeholder/components/placeholder-group-card.tsx | 2 +- src/normalizers/status.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/group/components/group-header.tsx b/src/features/group/components/group-header.tsx index 6275595bc8..cf30418703 100644 --- a/src/features/group/components/group-header.tsx +++ b/src/features/group/components/group-header.tsx @@ -90,7 +90,7 @@ const GroupHeader: React.FC = ({ group }) => { setIsHeaderMissing(true)} /> ); diff --git a/src/features/placeholder/components/placeholder-group-card.tsx b/src/features/placeholder/components/placeholder-group-card.tsx index 3bf09994a7..9e70b9ccd5 100644 --- a/src/features/placeholder/components/placeholder-group-card.tsx +++ b/src/features/placeholder/components/placeholder-group-card.tsx @@ -9,7 +9,7 @@ const PlaceholderGroupCard = () => { return (
- + {/* Group Cover Image */}
diff --git a/src/normalizers/status.ts b/src/normalizers/status.ts index 2d2cebc3c5..b50941ef97 100644 --- a/src/normalizers/status.ts +++ b/src/normalizers/status.ts @@ -280,7 +280,7 @@ const parseAccounts = (status: ImmutableMap) => { const parseGroup = (status: ImmutableMap) => { try { - const group = groupSchema.parse(status.get('group').toJS()); + const group = groupSchema.parse(status.get('group', status.getIn(['pleroma', 'group'])).toJS()); return status.set('group', group); } catch (_e) { return status.set('group', null);