From b0623597eab2fba0ed670541f7048f03c900b9ed Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 16 Mar 2022 21:58:30 -0500 Subject: [PATCH] Fix comment --- app/soapbox/normalizers/attachment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))),