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

@ -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);