From 7b61d319b1ff010f4d90e9e515881c04c7fc04d7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 9 Jul 2021 14:58:49 -0500 Subject: [PATCH 1/4] Auth: clear `me` when ME_FETCH_SKIP is dispatched --- app/soapbox/reducers/auth.js | Bin 6177 -> 6280 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 5985939da52397c4bd8a34211647b4c8066b80fd..d1338c1794aba9ec986d7fe79a52cade887d08cc 100644 GIT binary patch delta 79 zcmZ2z&|x^?gpzB#n`?-(M|`liXMjSjLRwLNu7bLro_=C-NoIatv3_pq#@%m)gp(7C ZQx$xX6SDKTvd9iRE3jj#P8!!L> delta 15 XcmeA$Txc-i#K!Lrgf{bwRI&g7Jd6g= From d3db2e37e300121bedfd081ad9f884aecbd7639a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 9 Jul 2021 15:54:32 -0500 Subject: [PATCH 2/4] Auth: better data validation --- app/soapbox/reducers/auth.js | Bin 6280 -> 6901 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index d1338c1794aba9ec986d7fe79a52cade887d08cc..60b1826044fa1f066e5180331e5f0f9e9240b1b8 100644 GIT binary patch delta 740 zcmaKqO-tNB7{|$Wu{AxELMttJcn;#u$gsp zYmdTw1iygbUHX{{y*n@af(pG%l4qWm-~a#Q_lJKUZ(c@kzX_#*DHxSyquKWYUBIkH z*RRf5A^3R06bD)4Cq>n4j zG|q5+&XF_94BKnb*j%l=e@$u6y1>aoi}~BS`?~ld4q18T5~)RY`T&A{i9hvB{<60V z5I>eC=FhYBjYZZF=C4Z+>>^}S6y|xG>{~$xsF(g{byWrt)_74#sA?#xlobcMs@WL3 z@FN##j^}m(LIo#-5vJGvJawdj(`m3PdhpkfV=u&mI-HRt#~m-W(*+dQbdg-Yp8o8;OK*J^nvdU;f1k*B$ zic2&+b8|~e5|eULeG>~bG&R9W)iYDnbrkYSb8<8%Ph{1YJYS4$G8dbrU~y`3ab|vA SD9}uWni_@N)Xi_$I7I;JDn2*> From 8cc8a465c7b670d7f405a59e995032872eb3684d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 9 Jul 2021 16:24:18 -0500 Subject: [PATCH 3/4] Auth: sanitize the initial state --- app/soapbox/reducers/auth.js | Bin 6901 -> 7445 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 60b1826044fa1f066e5180331e5f0f9e9240b1b8..29bc8fcd8ebcc4901e4cf1e512f038b06c4d778e 100644 GIT binary patch delta 372 zcmexrI@M~!98ODpeFf)?)a2}9g_4X^h2oOLl2nDnycC7p#O%~!h0GF#vc#Os6t3j_ zyy6mt;>5hnlFX{qV4$+ejNH~5K;1#9x%p+O3YmFeg$kv`sYS&)3aNR;rA4UJTz{(~c Date: Fri, 9 Jul 2021 16:29:01 -0500 Subject: [PATCH 4/4] Auth: test ME_FETCH_SKIP in reducer --- app/soapbox/reducers/__tests__/auth-test.js | Bin 7207 -> 7527 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/reducers/__tests__/auth-test.js b/app/soapbox/reducers/__tests__/auth-test.js index a149042c47cdb38d3998aa1cdded751d1b7d402e..77a9b19654415a4beebcd9033e318d338381db3a 100644 GIT binary patch delta 173 zcmZ2(@!VB&4Iyu2tnCL4%|OwQosVaY4a$(j6-M|^T0uK>S7ZmN}nx}lM= riMm3qruF2B>~d(@Hb^T@&Joj`{EnYb5~Nkrno9u)fQo@Mhy-B(f!s4I delta 17 YcmaEEwcKI@3*%-BMtNzLT1{&%05*sO%K!iX