From 9d79b6013480211529a211142818c8c208937ba0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 19 Mar 2022 14:41:16 -0500 Subject: [PATCH] Typescript: reducers/statuses.ts --- app/soapbox/normalizers/status.ts | 3 +-- .../reducers/{statuses.js => statuses.ts} | Bin 6913 -> 7365 bytes 2 files changed, 1 insertion(+), 2 deletions(-) rename app/soapbox/reducers/{statuses.js => statuses.ts} (69%) diff --git a/app/soapbox/normalizers/status.ts b/app/soapbox/normalizers/status.ts index 8db44ba397..21cdb42bde 100644 --- a/app/soapbox/normalizers/status.ts +++ b/app/soapbox/normalizers/status.ts @@ -15,7 +15,6 @@ import { normalizeCard } from 'soapbox/normalizers/card'; import { normalizeEmoji } from 'soapbox/normalizers/emoji'; import { normalizeMention } from 'soapbox/normalizers/mention'; import { normalizePoll } from 'soapbox/normalizers/poll'; -import { IStatus } from 'soapbox/types'; // https://docs.joinmastodon.org/entities/status/ export const StatusRecord = ImmutableRecord({ @@ -136,7 +135,7 @@ const fixQuote = (status: ImmutableMap) => { }); }; -export const normalizeStatus = (status: Record): IStatus => { +export const normalizeStatus = (status: Record) => { return StatusRecord( ImmutableMap(fromJS(status)).withMutations(status => { normalizeAttachments(status); diff --git a/app/soapbox/reducers/statuses.js b/app/soapbox/reducers/statuses.ts similarity index 69% rename from app/soapbox/reducers/statuses.js rename to app/soapbox/reducers/statuses.ts index 957640c9cdb1ce83c43aae60a469ced2cf8ece2a..0005adb80b0c0212bf889a19ea0feb777a8fbadd 100644 GIT binary patch delta 1234 zcmbVM&1(}u6i55LNt&uyYN0Seu?d7dX`xA*8c?){g0@9HC}F$%l1|y3S!ZTT)*?ml zCW`oOqF3)yZ{7qE@gj&<{{&Cs+1YG9mzIiqntAW{e((1_W*;wnT70o{nLHwO!96lh zJugt!mJ9P`gL*y}itLdp3#+!GoONLWoS^yc$?Ktg75YFnl%)c>4mKAKStjeC0>L)5 zXDM>?I$>ORmP;Q(jI5N6R$TSw>NTdQ3R^)@^paG9vPO|uEKH&(NR6usVTDVb$V(9_ zCX1*+16DgFtXY1Su3upV=Z0r4 zvmQp3rE4@J5=J@_{Xs}A%H}W9h3h;dDdi%7SdcPk>L9sj2&MJk)qh^+%j;h_$ zBhXbzb(9=E=V)obY(Tev)G3rPO#dkVzXrfYrifQ3XYe3HRuVj**Q`^Gek{k;1NbZR z%Uk&LH%w=a%y=);aW^38J%>$-NgazIfhyuRJ u-uY*&JGFVTMDWAZ?K7IT^TTO(9u7{Qx;UQB_aqiDGkX_bo(q%4-+uu-oU;Z1 delta 665 zcmZ`$ziSjh6eeoC+xxM(oSrecD079*jw}gS1cHcmdJ=?ig@VLoy?tjU?9Qw^vvOxH zMS6w6vl1npf}KPxEGz{70IPt#jfE)K3hvEDlN5H3_rCXi@B7}T#m$ASwHcT65*gj- zkPTB1%A+XN{=E?1Y(GDWKaVwzEA8u4?OYfijN$ic%OaOa&kq$av_xgM4hecK+wRP#Au&FE(AXn<`K)fqv|Zpp!pCF`S=xQgaCp zT#`T!5)fTb_-*3ZNtdh>F1!TdaNuc~IUyVPy5@~{WhykDp1k#62)=3%JX>GHyY=NU Ww)3%mzIcQO__=u-mzsmT{PhPq>g5Um