Fix reported statuses not showing up

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1494
This commit is contained in:
Alex Gleason
2023-07-30 18:37:48 -05:00
parent 40fde3fc2c
commit ef42144896
2 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@ export const makeEmojiMap = (emojis: any) => emojis.reduce((obj: any, emoji: any
/** Normalize entity ID */
export const normalizeId = (id: any): string | null => {
return typeof id === 'string' ? id : null;
return z.string().nullable().catch(null).parse(id);
};
export type Normalizer<V, R> = (value: V) => R;