diff --git a/app/soapbox/normalizers/attachment.ts b/app/soapbox/normalizers/attachment.ts index adb596dd0f..26e6166967 100644 --- a/app/soapbox/normalizers/attachment.ts +++ b/app/soapbox/normalizers/attachment.ts @@ -29,6 +29,7 @@ export const AttachmentRecord = ImmutableRecord({ status: null, }); +// Ensure attachments have required fields const normalizeUrls = (attachment: ImmutableMap) => { const url = [ attachment.get('url'), @@ -44,7 +45,6 @@ const normalizeUrls = (attachment: ImmutableMap) => { return attachment.mergeWith(mergeDefined, base); }; -// Ensure attachments have required fields export const normalizeAttachment = (attachment: Record) => { return AttachmentRecord( normalizeUrls(ImmutableMap(fromJS(attachment))),