Groups fixes

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-06-28 19:54:29 +02:00
parent e82b9bc579
commit d62232b83b
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ const GroupHeader: React.FC<IGroupHeader> = ({ group }) => {
<StillImage
src={group.header}
alt={intl.formatMessage(messages.header)}
className='relative h-32 w-full bg-gray-200 object-center md:rounded-t-xl lg:h-52 dark:bg-gray-900/50'
className='relative h-32 w-full bg-gray-200 object-center black:rounded-t-none md:rounded-t-xl lg:h-52 dark:bg-gray-900/50'
onError={() => setIsHeaderMissing(true)}
/>
);

View file

@ -9,7 +9,7 @@ const PlaceholderGroupCard = () => {
return (
<div className='animate-pulse'>
<Stack className='relative h-[240px] rounded-lg border border-solid border-gray-300 bg-white black:bg-white dark:border-primary-800 dark:bg-primary-900'>
<Stack className='relative h-[240px] rounded-lg border border-solid border-gray-300 bg-white black:bg-black dark:border-primary-800 dark:bg-primary-900'>
{/* Group Cover Image */}
<div className='relative grow basis-1/2 rounded-t-lg bg-gray-300 dark:bg-gray-800' />

View file

@ -280,7 +280,7 @@ const parseAccounts = (status: ImmutableMap<string, any>) => {
const parseGroup = (status: ImmutableMap<string, any>) => {
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);