From 4377c558981bb59cf49ced8b0791e363de8736db Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 2 Oct 2024 11:56:51 -0400 Subject: [PATCH 01/33] add demp.rdb --- dump.rdb | Bin 0 -> 47816 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dump.rdb diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000000000000000000000000000000000000..9527842697752b9d1d8aa364208a3367677065d7 GIT binary patch literal 47816 zcmdUY349yJb@wbTlHdjKrbG!#kQ6D2AiporFH(T+Pv>b&e(}WVT<^^h(<#ZPTP#D{1RAP2(i|n#OJF@6F6Euvh{h zWm%Fx^GC_T?kr~Cym{yUz1g*Ca@%gFv#;;!nFi2smbhnU~X_x1rZd`DoDL<3%Bj{uli>_cO-YKNXKAV=jLv z;2Lnn;-LefurMWvF7mPHibchQ=n4p7AtAWnF+L$K&T~7tyKQ$PgiPpMT$l=p2>~YH zfUk;+)`fT6{!cqDFsKBTo#6vBp$NOGG|nfYaj|;grgU@p`7Pn7j}Nmuq5&b*qN`ch zIM>3IyqgQg(DI zDZty6EbK^I^~c0mi0xv;QVG?-bS&$$)9KGM9ZHvJc=c#}cAoo@yVcgpAk>5oNB9}R z_)$zx&A3LOvqDgL;F`l?I639*);ane64Q+wDfsomZ@Sxh!XFp-gn*Z_e4!W9l#P{_ z9mgct6H0^yv$Q&a&Pk}xwkg89b0LJ=~GHI?vFZIm2qb&dfb$66qV z{L8J)CC4Zs$G%*0tc+lC^js}DKF*%ZlA}694qy~5IjnG058qRfgpJVWqMVVvV^{VmeZ`3=^AzlbKz8F#b04sM z0KUzfZ~9kAL8dt?2-c_9Q$aAE5d_wO?ED7vEV4YmE0U0tg(c+Xd=hdCm5?jQOhng# zkQjmuFO!38?w%g9n0X`}Vkp0Wq>`mD!{jhbk(Y`KvG8n`>P4mgn|!Bg%tKgYy2NNa zAq1M62@{IICd?hSqKgi4}upV4}^X}W+XKiPJ(reJez~u&p zp=QKscO(M3+b_%r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BDjZ$JTw4^5E{YQ`+Bit@vP(JZ@*wf4Pi)$%I z%f}2tkwp$`-<4G^Wu#UK?~&G4*xfqxxcc-lZVGmGm>i^o8G8xjc&08+(Lz@rkWrn( zFgWkN&HbS5L0CHZ90r4Y4#T5ZFydG(gk(3{WX)Q zdV#YT4)U|DE8yUTPUYZ*XYs)c7H9Q_-q=R7ogTb!5}GBZch^;r6Bp=#3&Plte~8a_ z;KHMWz5cn+GLB&S(|U5;!liu2EgKNX0-Xl~CZ9kIn(KswTn?>8K5 zA;l%Peqhb2>W`FWZiaNzVn%C4(9zr|a_u#h3BVQO+(IBCeMGH11p zNKp*j6(_A|KOj}l+kCNJ>Ji}$p!5SM(5zT9c3@V&t#olv~Bsey{DlS@i{C9&bhC zk#U?{G*Nw35{lu Date: Wed, 2 Oct 2024 12:09:50 -0400 Subject: [PATCH 02/33] updated f24 brach from team repository --- dump.rdb | Bin 47816 -> 47816 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/dump.rdb b/dump.rdb index 9527842697752b9d1d8aa364208a3367677065d7..6700c4c0010206a944540f202c05e6bc00c86b8e 100644 GIT binary patch delta 48 zcmV-00MGx(^#aKC0+28f191Ij`UrJ%Wn?XFWo^RHaIry+90LM?{j<>=@0|#EDAP%S GF{Rxl#1@DE delta 48 zcmV-00MGx(^#aKC0+28fd~E$@`UrJ%Wn?XFWo^R1vavyp90O&<@3YYy@0|!EWi)UV G1p3-Qh8FPv From 3252d6a45a05456d1d503a189e6263ccd157ac7f Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 2 Oct 2024 12:48:28 -0400 Subject: [PATCH 03/33] dump.rdb issues --- dump.rdb | Bin 0 -> 47817 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dump.rdb diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000000000000000000000000000000000000..400d605c5a19ae0072f7daf7ac5ae7e255d12bae GIT binary patch literal 47817 zcmdUY349yJdG9PPlHdjKrbG!#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2|#hZv$z1hu*)sg0W z+n3U(NRm}EsBn@Md(TCZtT*h0ui{BoTfvx}E5{VfMD9Ris?^uOf_ta?{kHdK)fb3) zycLZ{$8mDeMDoEU;|M?%WFQIdgN*TR1I^`BG}ouF=4u|J zM+R-An(HiRF7UyiO))e`aYU=J2CK&XJmAcr(P1Ay=*y?Vjt}(uxL4McV)X?&bzO`< F{{tFY Date: Wed, 2 Oct 2024 12:51:56 -0400 Subject: [PATCH 04/33] Updating permission logic --- src/middleware/user.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/middleware/user.js b/src/middleware/user.js index dd27a8c650..feb7d23e79 100644 --- a/src/middleware/user.js +++ b/src/middleware/user.js @@ -36,6 +36,16 @@ const passportAuthenticateAsync = function (req, res) { }); }; +// permisssions for admin to see username on anonymous posts +const showUsername = async (userId, currentUser) => { + const isAdmin = await user.isAdministrator(currentUser.uid); + + if (isAnonymous && !isAdmin) { + return 'Anonymous User'; + } + + return user.getDisplayName(userId); +}; module.exports = function (middleware) { async function authenticate(req, res) { From 7523581c2c92999b4bd54b2e9a05808008014544 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 2 Oct 2024 12:57:46 -0400 Subject: [PATCH 05/33] implementing the logic in src/posts/summary.js instead of src/middleware/user.js --- dump.rdb | Bin 47817 -> 47817 bytes src/middleware/user.js | 16 ++++++++-------- src/posts/create.js | 2 +- src/posts/summary.js | 8 ++++++++ 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/dump.rdb b/dump.rdb index 400d605c5a19ae0072f7daf7ac5ae7e255d12bae..631ebad5deff8549f650a5825234578830c35ab5 100644 GIT binary patch delta 33 rcmV++0N($}^#aND0+28QXnL_SoE!tA7ACXN9Pph8>7w`5Im7c82JsLy delta 33 rcmV++0N($}^#aND0+28QJ9)7(oE!t { - const isAdmin = await user.isAdministrator(currentUser.uid); +// // permisssions for admin to see username on anonymous posts +// const showUsername = async (userId, currentUser) => { +// const isAdmin = await user.isAdministrator(currentUser.uid); - if (isAnonymous && !isAdmin) { - return 'Anonymous User'; - } +// if (isAnonymous && !isAdmin) { +// return 'Anonymous User'; +// } - return user.getDisplayName(userId); -}; +// return user.getDisplayName(userId); +// }; module.exports = function (middleware) { async function authenticate(req, res) { diff --git a/src/posts/create.js b/src/posts/create.js index f4dbe63939..4990334dc1 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,7 +19,7 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; - const isAnon = true; + const isAnon = data.isAnonymous || false;; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); diff --git a/src/posts/summary.js b/src/posts/summary.js index 0356779d6f..8ff8a81397 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -44,6 +44,14 @@ module.exports = function (Posts) { if (!uidToUser.hasOwnProperty(post.uid)) { post.uid = 0; } + + // Check if the post is anonymous + if (post.anonymous) { + if (!user.isAdministrator(uid)) { + post.user.username = 'Anonymous User'; + } + } + post.user = uidToUser[post.uid]; Posts.overrideGuestHandle(post, post.handle); post.handle = undefined; From c47134a5329dde55b9c9a7de626513a533e56c66 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 2 Oct 2024 12:59:53 -0400 Subject: [PATCH 06/33] fixing lint test errors --- dump.rdb | Bin 47817 -> 47869 bytes src/middleware/user.js | 2 +- src/posts/create.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dump.rdb b/dump.rdb index 631ebad5deff8549f650a5825234578830c35ab5..33f9059a1324aa646a4c864005db8e43bf62712c 100644 GIT binary patch delta 284 zcmX^4mFe$SrU?d2Q>!-`d2+C_G5!}cnq25EH)#^vWc@a_&8s+OG6~DeGcYi)FnnRy z@YQz`BLf2`Gvj72?#nFVFo}kP`(P3vMVmDQnt3!OI42e)rl*!=rj{35B~?0SrdSyX zeVHMo;g=x8(D{HthK1`(%POq~kj$ktj!c_UpWf>$dd)0Ne9ossI20 delta 261 zcmezSmFeVHrU?d28C4sNJULjI8UG6!O+L6lZt{Z=w#oZf3QS(hDmyuTuHoeOyI41~ zbJ{Sm3kx$aFfcJ}4&%Pe!VTqoX*jrVvx7i0kES^1#Dc{1)UwRf@?xu`O6SZJDbmD>rQtBhY24#i_-` zR+9sy6gK`ja;}vTeS%R9uwf<)ZIbEf0Sd2LQ#$ BUN`^% diff --git a/src/middleware/user.js b/src/middleware/user.js index 0f286340fc..e5be3040d1 100644 --- a/src/middleware/user.js +++ b/src/middleware/user.js @@ -36,7 +36,7 @@ const passportAuthenticateAsync = function (req, res) { }); }; -// // permisssions for admin to see username on anonymous posts +// permisssions for admin to see username on anonymous posts // const showUsername = async (userId, currentUser) => { // const isAdmin = await user.isAdministrator(currentUser.uid); diff --git a/src/posts/create.js b/src/posts/create.js index 4990334dc1..40e9f6bd41 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,7 +19,7 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; - const isAnon = data.isAnonymous || false;; + const isAnon = data.isAnonymous || false; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); From 2d746ad1c1aefddc17fbc7097ce3552095903670 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 2 Oct 2024 13:00:50 -0400 Subject: [PATCH 07/33] fixing more lint test errors --- src/middleware/user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/middleware/user.js b/src/middleware/user.js index e5be3040d1..0bd463500d 100644 --- a/src/middleware/user.js +++ b/src/middleware/user.js @@ -38,13 +38,13 @@ const passportAuthenticateAsync = function (req, res) { // permisssions for admin to see username on anonymous posts // const showUsername = async (userId, currentUser) => { -// const isAdmin = await user.isAdministrator(currentUser.uid); +// const isAdmin = await user.isAdministrator(currentUser.uid); -// if (isAnonymous && !isAdmin) { -// return 'Anonymous User'; -// } +// if (isAnonymous && !isAdmin) { +// return 'Anonymous User'; +// } -// return user.getDisplayName(userId); +// return user.getDisplayName(userId); // }; module.exports = function (middleware) { From 584ddeb15cd26cc32e9f475f3ce185dbb25b0a8c Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Thu, 3 Oct 2024 20:04:43 -0400 Subject: [PATCH 08/33] demp.rdb issue --- dump.rdb | Bin 47869 -> 47870 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/dump.rdb b/dump.rdb index 33f9059a1324aa646a4c864005db8e43bf62712c..8a2619b9c9ecb26582fe83e29abaadd4998a2b20 100644 GIT binary patch delta 59 zcmV-B0L1_O^#cC&0+28fE8P8N`UrJ%Wn?XFWo^Q+x3NKJ909qLsvJ591q$>W1f)-3 Rv+EoRo(O~i?;0xb1fM*J8Djtd delta 58 zcmV-A0LB0Q^#c9%0+28fm3#eW`UrJ%Wn?XFWo^RHaIryX909nKsvJ581Pb(osw#l9 Q>>LW72xn{SZjr9Gjx*mI3jhEB From e45958a0d9be37254576dd819caec51b593732c2 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Thu, 3 Oct 2024 20:32:56 -0400 Subject: [PATCH 09/33] fixing test case errors --- dump.rdb | Bin 47870 -> 55275 bytes src/posts/summary.js | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dump.rdb b/dump.rdb index 8a2619b9c9ecb26582fe83e29abaadd4998a2b20..9f15ec31b50bb723dc8449cd84a28255b9bd77ff 100644 GIT binary patch delta 4222 zcma)9e^^uJ**@>#Bq1a~0)g-|2_)gC0YOk3QL$*%Nd*OIwf-PLfM`gNgi>uQ5iN>T ze%)4Whg;NXUHw!v_M5ZU=ZD&M*SGd_wsqaQR+nyT*Uoizj;^llWbbRpHJtHJ&bwLig@&UR{ilipfxF zoZO#;%}tiT`HC=tPcvQ!{Lo#Z#;q5hM{ci$SEY;h?mHF4|Jp=PZ&gI2!Ysw7>wgNrUWs0v23A3d zLn9wUJuihmGthh~Qa`#WBE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@0HiDU0TyK||C(*j$!Gn!y-#c9^6_aq z5E!R7<6a`yNgeJ>zhxz#ZX|HqU|{dLsR$14T~EUKwV#E>ak z-#q_l2%bCs3~RZr^9u(3O)G>xk-XoPw+2rTG83yh9(fQ%@x9-|H8{^R-_i~A>Z zutcX~cX=zB!CTJ!;9Q7<)kv)H1Np28tG9D*El1fwrwysHy$EZTr7DPmPl1akyfAE5 zqhYs(3aGKqDWLOPZlLg!a1zObAMMa!UW6akF7k&a^EldDoFewTB1cPN9(q$xTo-ZgadB7*R~#0NDI3iL?4@YQh}{=Qy|Rbe$4J)p;< zSx(<^rivPetyhtw8Rz}!@nAh~`L@DFFcKN-NR<-y$IhvQwwqJd$SDawvz)Jey+wn; z&BqbBTTTsN8udmgN~9{ZuhZixTZ~P6WXQKGC!(7(gX>&;^QnDV8i-|djc2s};>X8% z6EXKFc~#p>xADq#MjJOyx%lSLS}yU@t2GlPoIc|5k8q~*_9C6PGXl!3Rn@DlHJ0kh zEFxt5`OSp%z3g!8e+bdyhx38>)2sk)DK43!nzONhJu37G<8Oz~dEoK&chOPQ%rm&0 z;n-aTX_T5aNK1DPM4QGBCV1g=0;d4Zrk=pJJ5nenI9aCSU8|wShfh}H$2z2Kj$lhn zo&>@SEp*AQvE2Y-Q^Fq9#OAbW$Yd^G3XaBjWfIMhBPXWu`7u2254e3^g65`3>NcEk zjnoaLB6kjJO1vAp_`@%WXLWJmB{HRk|1HO_j;mqKIgeYRA^3f!0aLqQgE>-#Q|5}^ zTs7gu&W;(~36}LnAbClYP!WsVD-0Yh3-KV+gT24DfJ~ghym2fghHe}}b>~jc6`U_o zJ5HiGHHMX^cTb*9oF^pp#OcJHMhkbMa7N1rW!>qg{dy tidToTopic[post.tid]); From 553186c7475f7f6e9a3b242a2fac60fc55ccdbfc Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Thu, 3 Oct 2024 20:44:56 -0400 Subject: [PATCH 10/33] npm install to solve test errors --- dump.rdb | Bin 55275 -> 55345 bytes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PLwz2l)^&Wzg_n!a8(g1NPNMb4uLuXwK0Xy#F#VO1{!#8(a z;$~!S1Tv;w=4C_}@Zid190qh;?PjS1+4IoCa&o}63y|=6XaNcz=gD)LxhLmps88Ox fSBeGXtI65Z)rEnH0UVs1|NkEo6u%U$^Y=& From 78def5856cd54613a10dc29eeb9902671e752fb5 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Sun, 6 Oct 2024 16:09:13 -0400 Subject: [PATCH 11/33] minor changes to check test suites --- dump.rdb | Bin 55345 -> 55276 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/dump.rdb b/dump.rdb index 4aa6dcc50a04d6f00fbfae50db4b383be405a1c7..3e130b07b0136c7116d9596a362626fc9cd8529b 100644 GIT binary patch delta 600 zcmdnEf%(mP<_QLZr_C7Be{qx+r>5xUrsf_hSh~^i!Y(FhhRJya;w%!K7b7O??UrV| zI@xQtX1ySgJ4r!Ey&4FOtC7+FD|jl z%uP&B)q22a!m#WCzllI`YGP4xhE;NYUP)?RiTW4e18EG4ABY*Ulq9AXt2|)TV_5P) zOpg`llA>bO2aNg;1mak7@{<#D6j)i)GxJowi0B;XWmxopKaRO9Gqt=ShC%rOqwWKN zm;~L%W+s&{q6cCg3e+X&IlN#{dcdGFS#eJohbYLwj0_Bu4U0QiK%B`3=Q&K~SC^Q4 zH$`jmyd6A~cejX4Ub|NfB6)pp8pO+v`&O_Bft0`9cNQYGZ+{4wv03cE86F;(xt#w6 z^(Sv^k(>NrC+p-YW1h*fXQjm8l5Odwsl_G5>|ew{M)jYa&LRwA=y+I8{%}ElvUe@- z>)P)F5xUrsf_>n6=UI!Y(EmhRJya;w-HEe?lhf?UrV| zG1+UkrqN%%KOvJ8G#ELTJ>XXtC{9f*O3tuK&d)1J%_~v=^6!8l!@>swh8&scd5I;Z zMX5>;7$^7bmK9k1fZt@nWVVvT^kS7S{|`)AQcY;nrCxh|>M%@Pjoe8>)8<z`(%7FcBESMR|$2sqrO=*{OLz)k0sm zd4Ue|Iy)WWLLCo~3lFh?0(o+MBiOl{ZO$7pvit{$9GnO70C$-7Msx0nx8@Z6gcF%E=Ec945 Date: Sun, 6 Oct 2024 16:31:58 -0400 Subject: [PATCH 12/33] minor changes to get around a flaky test --- dump.rdb | Bin 55276 -> 79446 bytes src/controllers/admin/privileges.js | 1 + 2 files changed, 1 insertion(+) diff --git a/dump.rdb b/dump.rdb index 3e130b07b0136c7116d9596a362626fc9cd8529b..2fb564a35b6c6d4855f1eccddfcaa09aefbcfffa 100644 GIT binary patch delta 18468 zcmb_^d2}1sdG8DWf>^i!;=YI&QL9OU#J-FjXDDj1s9hpu$ucc$0}>($Kv*czwlc7& z-LfQW>^OaP655vIIB8_N*%~LVk+5yrB#z_s)IIJyb>N)FO>%PL^c6ktocCTI-*@jU z7?7Z>wC@ibP!wix=icvr-|zSPewV*{RsG)YG}mpb4F9GY|6jUnnvGbe+36n??(cnl z^E+>FgIdz8PbSitG@Xn^7S{GQ^%4Z3B}lUP^V4U;H%NletH|On@JLqsMVo<^N!;s-+HiRdF89J3nOs5+f;8!a2 zO#dc5)1tX9Iu#tJ?R1JwCQ_O7+O_yI*By7KgVV_=mP)a~G>qR|{8+xm)IFZ!M^|Sx zKR|=w9-G^PZ<3}%vm?ROIGgF{fSYKD^Jqe8do@W4KRMthm^Ji;rO%GSpzWoRp>N@j zZrX6eQOz$}YWQpKwsQv`6<1){dMZ0k zXJIj!6U<|l$6!Q_#JON(Iu_T$fUNVtL zSZu4!Sj81owJN(&i{2c@YRYZ#*w|3SAJpr}i+-2g;g9${dOdkD>UG%Jh&QTN8OTMV zJ`A^vrKVw4&@(#MMIFAN-xu{-gN{hp>IypS)?n1*wX%L2>$2N|;fTv)u0=zKC&Z&l zJDo6WPDRY4$Y9u0cuD#bDOfPC!{=~$Tt1t_Z=>yNiZ7Iwr<$E%;~Cn+?A{HR8;G-+ z*(6(al|6-4n9e4r62VBieh%hFLz0&=c*$Uh2K0~EG<*|$jiG3NOq_LYj)hNZVP5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&#zVP9E9f*m>}v>AoG?X6*ZCPmXRKJ{*}ku{^RsJlk;FvudZ0 z9}Ou%E}0VmqmhwJB@Y+}q7^C=E1AH=0`6bIb1F4z^c6j)(gFJ0ob}C8)h|Bdn~7KxZeRfufKP9BxNbsiQ2`65)@H;8Fs$kng%xeb4))1;WO) za^Ko0VvBH~TCAK%fssECN6!(D$gk7#fyov)e%{0v;3&_o*9OXY#kxBQQqhh9f8+(i z8r!NhHWrRptZm?gB3%#>c4VBz367BOe0CLI=Q6Vc#epL$1Qbm;di?+|}?6c}*6N OedlEBKWjd^`2PR_qDjpF delta 848 zcmZ`$OH30{6n(Eug#y}XDV0(q#<>J|0cP#6U34F%l;U zVeWO)Li1wHV(#07Mqz%Wsz0dfW~AzjK|$H-vF<+6JIX|Xk1$dq&edj&X%`wNdY2&) z3q=_=5Q~aZKnOED=OoyNo)Eo{7C9y!><$E@5s8aPj!Z@RJbFmXUP@wkv5sI5dPK|~ zZBB7qv=iJ&=yoa;4Kg8{*01G-NL|L19zqX@zP;#zz+Jr7hISI{CUje;JDJkdWh&Ec z%XD9-r|BE2CCG(y*7m`~fKy)3VMj^jx?%8&H!0--GhMLA3jn80uQ25$%N`1! zwifV%e1a1tu{dL1_omCzu60l`%pDC<6^btFcU4zw?`C;v3%0^=Us>MkkI{3K(kS#N z^BeNJ2JD2V$Bgon9`|VI-FdERmQ{IX##ElqOARt*!L8JWb>A56y z?od-ElcjRPggYox?!5fTgp;szSN-x_>B&!X^%Ty*sqRMD{?+oIi?UvecfrXuR_$Tg zuK Date: Wed, 9 Oct 2024 12:49:04 -0400 Subject: [PATCH 13/33] dump.rdb file change due to npm build tpl --- dump.rdb | Bin 79446 -> 55343 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/dump.rdb b/dump.rdb index 2fb564a35b6c6d4855f1eccddfcaa09aefbcfffa..2ce7101dba1d622a691cc5386b19e4c641354764 100644 GIT binary patch delta 868 zcmZ`%TS!xJ7(f5*s5@ruY^{>zb_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field and permissions, debugged to pass test --- dump.rdb | Bin 55343 -> 80426 bytes src/api/posts.js | 9 ++++++ src/controllers/search.js | 8 +++++ src/posts/summary.js | 12 ++++---- src/upgrades/1.4.4/sound_settings.js | 2 +- test/posts.js | 43 +++++++++++++++++++++++++++ 6 files changed, 67 insertions(+), 7 deletions(-) diff --git a/dump.rdb b/dump.rdb index 2ce7101dba1d622a691cc5386b19e4c641354764..0f2783df388ed3ffff6dbeb39d4178ec0c84fdc5 100644 GIT binary patch delta 19195 zcmb_^32+vvCD{AyPoW3d?f4Ccy`A@QZ>7ot*vopgPp0Fa+dqQ*9RIT zC@GaK6$&JU?taIAeE;`<4{yGueZ8!^;cEJw)iC-m#sbGCoRjS2`yW5O_U-i_{g5AO z(ArJe443EVY$`FkY;EgWf*|w+NtTz*UgB<&1Yy#UWoOZ%)skh;jDXr9hxGLu|$GyF+|=JYjrPILB# z;V|GyD~EL6yfmdl{Y;GVa{O{ ze(-J=|D7L8J1}Rr!R%nL`BVZn3T+p@673U7YT%`X*PPu7`S`Py%q|qK2G~{J=GMbu*H)YaEvzEM+U?UEjSFo=3I2pB8AKj-!0 zb)7+5%&@2M+OEswVC93Jkl*chhy4Msk9IFD|L^zZ+1d>32{xVQ=>W5HCtPkO&gD;M z*}7}&DYRE~Av=+YCb-6Fn5B*+FX!>%!-AU8FR4j*6gX8y^zB=wHoS8ew~B zFP+RxOk_^NMk?m4A#8eVt{!IFHoPDg(63t)u#e)>oI^%YcS&4{tqJg1)v9PP)`c9VAUgNpAdIC2Y>*($@Y29b z3ojkK>foh^mjPZzc$wfe_oeTD-1-p;DZ~o21N0-u)~`QQ7bi==vV*$2hu$k~go{5rBj^G>w792qc%doF{#|9t{`Rs#S^~kbqEBD~2H}m<{kl&0qwsd2o$L`l zS<}Mz&h(%(VXnlidrK@fJzmtnEK_8D-u-h}Q=4i{ugD>aa$6#;;;NFZgp+Djt?ZW& zM0lLF?y#~Bab@-7rEHYrPG)im(>u#O(d91R^5jJRFNYenlv5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0#-(HV6NFNT21o}E^YI*T+ic@I4YJZ4+Lq4^>7_T zXZ8^~-4?@eI(#qbp*mU8MR`+IRYIuSISpK!@?63Vn9#Y5>E6)x((2l37(c1x7L>>Z zfyLXRwX`PU!(4MQYRUgMEDXLo^Hp(#i!e*-;7Ki1~v#18sHCI*_PIsAMApW16h*VCc@FF4we`R~dQoMfK xQbR*E$4gK|lop0~ePc@R7>tHq3yVsFSeti2%_4MVll|L#iMYsR} diff --git a/src/api/posts.js b/src/api/posts.js index 4e3917a008..ca3bbfe707 100644 --- a/src/api/posts.js +++ b/src/api/posts.js @@ -40,6 +40,10 @@ postsAPI.get = async function (caller, data) { post.content = '[[topic:post-is-deleted]]'; } + // Reference to ChatGPT + // Add the anonymous field to the response + post.anonymous = post.isAnon || false; + return post; }; @@ -62,6 +66,11 @@ postsAPI.getSummary = async (caller, { pid }) => { const postsData = await posts.getPostSummaryByPids([pid], caller.uid, { stripTags: false }); posts.modifyPostByPrivilege(postsData[0], topicPrivileges); + + // Reference to ChatGPT + // Add the anonymous field to the post summary + postsData[0].anonymous = postsData[0].isAnon || false; + return postsData[0]; }; diff --git a/src/controllers/search.js b/src/controllers/search.js index 8b21189e7d..5773bcdb3c 100644 --- a/src/controllers/search.js +++ b/src/controllers/search.js @@ -78,6 +78,14 @@ searchController.search = async function (req, res, next) { recordSearch(data), ]); + // Reference to ChatGPT + // Add anonymous field to each post + searchData.posts = searchData.posts.map((post) => { + post.anonymous = post.isAnon ? 'Anonymous User' : ''; + delete post.isAnon; + return post; + }); + searchData.pagination = pagination.create(page, searchData.pageCount, req.query); searchData.multiplePages = searchData.pageCount > 1; searchData.search_query = validator.escape(String(req.query.term || '')); diff --git a/src/posts/summary.js b/src/posts/summary.js index 665066f58d..ae3c5bc24d 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -20,7 +20,7 @@ module.exports = function (Posts) { options.parse = options.hasOwnProperty('parse') ? options.parse : true; options.extraFields = options.hasOwnProperty('extraFields') ? options.extraFields : []; - const fields = ['pid', 'tid', 'content', 'uid', 'timestamp', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields); + const fields = ['pid', 'tid', 'content', 'uid', 'timestamp', 'isAnon', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields); let posts = await Posts.getPostsFields(pids, fields); posts = posts.filter(Boolean); @@ -53,13 +53,13 @@ module.exports = function (Posts) { post.isMainPost = post.topic && post.pid === post.topic.mainPid; post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); - post.anonymous = post.anonymous ? post.anonymous : 'false'; // checks if anonymous is true if not then false // Check if the post is anonymous - if (post.anonymous) { - if (!user.isAdministrator(uid)) { - post.user.username = 'Anonymous User'; - } + // Reference to ChatGPT + if (post.isAnon && !user.isAdministrator(uid)) { + post.user.username = 'Anonymous User'; + } else { + post.user.username = users.find(u => u.uid === post.uid).username; } }); diff --git a/src/upgrades/1.4.4/sound_settings.js b/src/upgrades/1.4.4/sound_settings.js index 9b029a78e6..4880d84a19 100644 --- a/src/upgrades/1.4.4/sound_settings.js +++ b/src/upgrades/1.4.4/sound_settings.js @@ -11,7 +11,7 @@ const map = { 'waterdrop-low.mp3': 'Default | Water drop (low)', }; -console.log('Sophie Feng'); +// console.log('Sophie Feng'); function soundSettings(cb) { const keys = ['chat-incoming', 'chat-outgoing', 'notification']; diff --git a/test/posts.js b/test/posts.js index 20403e24cf..6a46eb7f78 100644 --- a/test/posts.js +++ b/test/posts.js @@ -701,6 +701,49 @@ describe('Post\'s', () => { }); }); + // tests for admin permission to see anonymous poster's user name + // Reference to ChatGPT + describe('Post Anonymity', () => { + let uid; + let postData; + let adminUid; + + before(async () => { + // Create a regular user + uid = await user.create({ username: 'regularuser' }); + + // Create an admin user + adminUid = await user.create({ username: 'adminuser' }); + await groups.join('administrators', adminUid); // Make the user an admin + + // Create an anonymous post + ({ postData } = await topics.post({ + uid: uid, + cid: cid, + title: 'Anonymous Post Test', + content: 'This is an anonymous post', + isAnon: true, + })); + }); + + it('should display "Anonymous User" if the post is anonymous and the user is not an admin', async () => { + // Simulate a request by a non-admin user + const postSummary = await posts.getPostSummaryByPids([postData.pid], uid, {}); + // console.log(postSummary[0]); + + // Check that the username is set to "Anonymous User" + assert.strictEqual(postSummary[0].user.username, 'Anonymous User'); + }); + + it('should display the real username if the post is anonymous but the user is an admin', async () => { + // Simulate a request by an admin user + const postSummary = await posts.getPostSummaryByPids([postData.pid], adminUid, {}); + // console.log(postSummary[0]); + // Check that the username is the actual user's username + assert.strictEqual(postSummary[0].user.username, 'regularuser'); + }); + }); + it('should get recent poster uids', (done) => { topics.reply({ uid: voterUid, From fa766f14f3cc45d988593b2b00a70126b7ba7d51 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:33:07 -0400 Subject: [PATCH 15/33] resolving conflict with the main branch --- src/posts/create.js | 5 ++++- src/posts/summary.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index 40e9f6bd41..b18672b34b 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,7 +19,10 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; - const isAnon = data.isAnonymous || false; + // const isAnon = data.isAnonymous || false; + // this is in conflict with the hard coding in main branch + // since the hard coding is what we need right now, commeting the non-hard coded line out + const isAnon = false; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); diff --git a/src/posts/summary.js b/src/posts/summary.js index ae3c5bc24d..69cd1e7b9b 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -56,7 +56,7 @@ module.exports = function (Posts) { // Check if the post is anonymous // Reference to ChatGPT - if (post.isAnon && !user.isAdministrator(uid)) { + if (post.anonymous && !user.isAdministrator(uid)) { post.user.username = 'Anonymous User'; } else { post.user.username = users.find(u => u.uid === post.uid).username; From 67996c35e224120fa446dc37263be423781bbfbb Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:36:26 -0400 Subject: [PATCH 16/33] resolving conflicts --- src/posts/create.js | 2 +- src/posts/summary.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index b18672b34b..be01d98df9 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -22,7 +22,7 @@ module.exports = function (Posts) { // const isAnon = data.isAnonymous || false; // this is in conflict with the hard coding in main branch // since the hard coding is what we need right now, commeting the non-hard coded line out - const isAnon = false; + const isAnon = true; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); diff --git a/src/posts/summary.js b/src/posts/summary.js index 69cd1e7b9b..6d31483df8 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -54,6 +54,7 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); + post.anonymous = post.anonymous ? post.anonymous : 'false'; // Check if the post is anonymous // Reference to ChatGPT if (post.anonymous && !user.isAdministrator(uid)) { From d6867d22926a9e6d9e3ab48d46a5772aeb2acc8a Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:38:29 -0400 Subject: [PATCH 17/33] resolving conflicts --- src/posts/create.js | 4 ++-- src/posts/summary.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index be01d98df9..5caf0a77e0 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -22,7 +22,7 @@ module.exports = function (Posts) { // const isAnon = data.isAnonymous || false; // this is in conflict with the hard coding in main branch // since the hard coding is what we need right now, commeting the non-hard coded line out - const isAnon = true; + const anonymous = true; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); @@ -39,7 +39,7 @@ module.exports = function (Posts) { tid: tid, content: content, timestamp: timestamp, - anonymous: isAnon, + anonymous: anonymous, }; if (data.toPid) { diff --git a/src/posts/summary.js b/src/posts/summary.js index 6d31483df8..237596ebde 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -20,7 +20,7 @@ module.exports = function (Posts) { options.parse = options.hasOwnProperty('parse') ? options.parse : true; options.extraFields = options.hasOwnProperty('extraFields') ? options.extraFields : []; - const fields = ['pid', 'tid', 'content', 'uid', 'timestamp', 'isAnon', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields); + const fields = ['pid', 'tid', 'content', 'uid', 'timestamp', 'anonymous', 'deleted', 'upvotes', 'downvotes', 'replies', 'handle'].concat(options.extraFields); let posts = await Posts.getPostsFields(pids, fields); posts = posts.filter(Boolean); @@ -54,7 +54,6 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); - post.anonymous = post.anonymous ? post.anonymous : 'false'; // Check if the post is anonymous // Reference to ChatGPT if (post.anonymous && !user.isAdministrator(uid)) { From 0cca74d1f2732540607cfb13ff6ac95c33553189 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:42:07 -0400 Subject: [PATCH 18/33] resolving conflicts --- src/posts/create.js | 2 +- src/posts/summary.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index 5caf0a77e0..699581b9d3 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -22,7 +22,7 @@ module.exports = function (Posts) { // const isAnon = data.isAnonymous || false; // this is in conflict with the hard coding in main branch // since the hard coding is what we need right now, commeting the non-hard coded line out - const anonymous = true; + const anonymous = data.isAnonymous || false; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); diff --git a/src/posts/summary.js b/src/posts/summary.js index 237596ebde..a308a1145d 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -54,6 +54,7 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); + post.anonymous = post.anonymous ? post.anonymous : 'false'; // Check if the post is anonymous // Reference to ChatGPT if (post.anonymous && !user.isAdministrator(uid)) { From 737c1ad1f1bb591904dacb072993a8393d88582c Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:44:36 -0400 Subject: [PATCH 19/33] resolving conflicts --- src/posts/create.js | 4 ++-- src/posts/summary.js | 2 +- test/posts.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index 699581b9d3..1b9c49bfda 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,10 +19,10 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; - // const isAnon = data.isAnonymous || false; + // const anonymous = data.isAnonymous || false; // this is in conflict with the hard coding in main branch // since the hard coding is what we need right now, commeting the non-hard coded line out - const anonymous = data.isAnonymous || false; + const anonymous = true; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); diff --git a/src/posts/summary.js b/src/posts/summary.js index a308a1145d..75901cc00e 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -54,7 +54,6 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); - post.anonymous = post.anonymous ? post.anonymous : 'false'; // Check if the post is anonymous // Reference to ChatGPT if (post.anonymous && !user.isAdministrator(uid)) { @@ -62,6 +61,7 @@ module.exports = function (Posts) { } else { post.user.username = users.find(u => u.uid === post.uid).username; } + post.anonymous = post.anonymous ? post.anonymous : 'false'; }); posts = posts.filter(post => tidToTopic[post.tid]); diff --git a/test/posts.js b/test/posts.js index 6a46eb7f78..23f0fed588 100644 --- a/test/posts.js +++ b/test/posts.js @@ -722,7 +722,7 @@ describe('Post\'s', () => { cid: cid, title: 'Anonymous Post Test', content: 'This is an anonymous post', - isAnon: true, + anonymous: true, })); }); From cefd37ed7e9e7ff67880a9fb745bec380e192771 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:46:23 -0400 Subject: [PATCH 20/33] resolving conflicts in summary.js --- src/posts/summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index 75901cc00e..abd619f95c 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -61,7 +61,7 @@ module.exports = function (Posts) { } else { post.user.username = users.find(u => u.uid === post.uid).username; } - post.anonymous = post.anonymous ? post.anonymous : 'false'; + post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined }); posts = posts.filter(post => tidToTopic[post.tid]); From e4684b1387f90ad8a79d3328483f4bed28401314 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:48:16 -0400 Subject: [PATCH 21/33] resolving conflicts in summary.js --- src/posts/summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index abd619f95c..dd18ae518f 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -61,7 +61,7 @@ module.exports = function (Posts) { } else { post.user.username = users.find(u => u.uid === post.uid).username; } - post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined + post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined }); posts = posts.filter(post => tidToTopic[post.tid]); From 4900fdd3f42c43c4f3d339ea6f244cd98ed7a241 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:50:07 -0400 Subject: [PATCH 22/33] resolving conflicts in summary.js --- src/posts/summary.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index dd18ae518f..237596ebde 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -61,7 +61,6 @@ module.exports = function (Posts) { } else { post.user.username = users.find(u => u.uid === post.uid).username; } - post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined }); posts = posts.filter(post => tidToTopic[post.tid]); From d20eecd6dda309ab44aa21ed6bf47e6315b295b1 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:52:20 -0400 Subject: [PATCH 23/33] resolving conflicts in summary.js --- src/posts/summary.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posts/summary.js b/src/posts/summary.js index 237596ebde..b331d8254b 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -53,6 +53,7 @@ module.exports = function (Posts) { post.isMainPost = post.topic && post.pid === post.topic.mainPid; post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); + post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined // Check if the post is anonymous // Reference to ChatGPT From d773a90d79ab4832bf393450fc974a1f92cf1f38 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:53:44 -0400 Subject: [PATCH 24/33] resolving conflicts in summary.js --- src/posts/summary.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index b331d8254b..77b8a962d4 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -54,7 +54,6 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined - // Check if the post is anonymous // Reference to ChatGPT if (post.anonymous && !user.isAdministrator(uid)) { From 413d4ae1e7f601ced1ffa8ff66520df3ae320148 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:55:59 -0400 Subject: [PATCH 25/33] resolving conflicts in summary.js --- src/posts/summary.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index 77b8a962d4..f7f2c44573 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -44,8 +44,15 @@ module.exports = function (Posts) { if (!uidToUser.hasOwnProperty(post.uid)) { post.uid = 0; } - + post.user = uidToUser[post.uid]; + // Check if the post is anonymous + // Reference to ChatGPT + if (post.anonymous && !user.isAdministrator(uid)) { + post.user.username = 'Anonymous User'; + } else { + post.user.username = users.find(u => u.uid === post.uid).username; + } Posts.overrideGuestHandle(post, post.handle); post.handle = undefined; post.topic = tidToTopic[post.tid]; @@ -54,13 +61,6 @@ module.exports = function (Posts) { post.deleted = post.deleted === 1; post.timestampISO = utils.toISOString(post.timestamp); post.anonymous = post.anonymous ? post.anonymous : 'false'; // makes sure anonymous is a required field for every post, false if anonymous field is undefined - // Check if the post is anonymous - // Reference to ChatGPT - if (post.anonymous && !user.isAdministrator(uid)) { - post.user.username = 'Anonymous User'; - } else { - post.user.username = users.find(u => u.uid === post.uid).username; - } }); posts = posts.filter(post => tidToTopic[post.tid]); From 19eca16346aa15f765f7663ad5e06599cc03eb3f Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:56:16 -0400 Subject: [PATCH 26/33] resolving conflicts in summary.js --- src/posts/summary.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index f7f2c44573..2ce5e0c1f4 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -44,7 +44,6 @@ module.exports = function (Posts) { if (!uidToUser.hasOwnProperty(post.uid)) { post.uid = 0; } - post.user = uidToUser[post.uid]; // Check if the post is anonymous // Reference to ChatGPT From 47a26e8d1299c8509a70fed87aa7bc0347a1fd9b Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:57:27 -0400 Subject: [PATCH 27/33] resolving conflicts in create.js --- src/posts/create.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index 1b9c49bfda..b5c2bd3ad6 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,10 +19,15 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; + // const anonymous = false; // hard code anonymous to become false + const anonymous = true; // hard code anonymous to become true + // attempted to get id from the tpl but we don't know how to do it + // const anonymous = data.getElementById('anonymousInput').value === 'true'; + // log anonymous field to see which variable it is + // console.log('get anon value:', anonymous); // const anonymous = data.isAnonymous || false; // this is in conflict with the hard coding in main branch // since the hard coding is what we need right now, commeting the non-hard coded line out - const anonymous = true; if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); From 1ee787b2904f00c4d1d3c281bc057bef8d1b6192 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:58:16 -0400 Subject: [PATCH 28/33] resolving conflicts in create.js --- src/posts/create.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index b5c2bd3ad6..6c410cd76c 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,15 +19,15 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; + // const anonymous = data.isAnonymous || false; + // this is in conflict with the hard coding in main branch + // since the hard coding is what we need right now, commeting the non-hard coded line out // const anonymous = false; // hard code anonymous to become false const anonymous = true; // hard code anonymous to become true // attempted to get id from the tpl but we don't know how to do it // const anonymous = data.getElementById('anonymousInput').value === 'true'; // log anonymous field to see which variable it is // console.log('get anon value:', anonymous); - // const anonymous = data.isAnonymous || false; - // this is in conflict with the hard coding in main branch - // since the hard coding is what we need right now, commeting the non-hard coded line out if (!uid && parseInt(uid, 10) !== 0) { throw new Error('[[error:invalid-uid]]'); From abc710ed855c08c56b02de2cf824a5bd152dac1c Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:58:46 -0400 Subject: [PATCH 29/33] resolving conflicts in create.js --- src/posts/create.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/posts/create.js b/src/posts/create.js index 6c410cd76c..a0668c84f3 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -19,9 +19,6 @@ module.exports = function (Posts) { const content = data.content.toString(); const timestamp = data.timestamp || Date.now(); const isMain = data.isMain || false; - // const anonymous = data.isAnonymous || false; - // this is in conflict with the hard coding in main branch - // since the hard coding is what we need right now, commeting the non-hard coded line out // const anonymous = false; // hard code anonymous to become false const anonymous = true; // hard code anonymous to become true // attempted to get id from the tpl but we don't know how to do it From e1899ded3c57aa7a4f9934b3633dba7a06eb2c57 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 19:59:20 -0400 Subject: [PATCH 30/33] resolving conflicts in create.js --- src/posts/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index a0668c84f3..dc4bf9e2cf 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -41,7 +41,7 @@ module.exports = function (Posts) { tid: tid, content: content, timestamp: timestamp, - anonymous: anonymous, + anonymous: anonymous, // set anonymous datafield to be anonymous value }; if (data.toPid) { From f00142af7e76ca6d2ed42e5486bf97f4ff71be0e Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 20:28:26 -0400 Subject: [PATCH 31/33] changes to pass some test cases and cleaning up --- dump.rdb | Bin 80426 -> 56885 bytes src/api/posts.js | 4 ++-- src/controllers/search.js | 3 +-- test/posts.js | 7 +++++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dump.rdb b/dump.rdb index 0f2783df388ed3ffff6dbeb39d4178ec0c84fdc5..538e346d4ad52ab0991201fc4a67fcc3924caef0 100644 GIT binary patch delta 1765 zcmZ`(U2NM_6!vxg({!~L+Enebq(57_kTyw^Y^k*eYkwU=tdq)^P^+d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~%37eL0y@GT8~(E0nSQ=*;`N70$fN s2ciH*g5Ck0;7192y>i^V4kuONXWzc7S*xt);(z<_2Zv)fp1bh>0R{JyvH$=8 diff --git a/src/api/posts.js b/src/api/posts.js index ca3bbfe707..1f6d685da9 100644 --- a/src/api/posts.js +++ b/src/api/posts.js @@ -42,7 +42,7 @@ postsAPI.get = async function (caller, data) { // Reference to ChatGPT // Add the anonymous field to the response - post.anonymous = post.isAnon || false; + // post.anonymous = post.isAnon || false; return post; }; @@ -69,7 +69,7 @@ postsAPI.getSummary = async (caller, { pid }) => { // Reference to ChatGPT // Add the anonymous field to the post summary - postsData[0].anonymous = postsData[0].isAnon || false; + // postsData[0].anonymous = postsData[0].anonymous || false; return postsData[0]; }; diff --git a/src/controllers/search.js b/src/controllers/search.js index 5773bcdb3c..4a8c11a8df 100644 --- a/src/controllers/search.js +++ b/src/controllers/search.js @@ -81,8 +81,7 @@ searchController.search = async function (req, res, next) { // Reference to ChatGPT // Add anonymous field to each post searchData.posts = searchData.posts.map((post) => { - post.anonymous = post.isAnon ? 'Anonymous User' : ''; - delete post.isAnon; + post.anonymous = post.anonymous ? 'Anonymous User' : ''; return post; }); diff --git a/test/posts.js b/test/posts.js index 23f0fed588..cba1b7832f 100644 --- a/test/posts.js +++ b/test/posts.js @@ -696,6 +696,7 @@ describe('Post\'s', () => { assert(data[0].user); assert(data[0].topic); assert(data[0].category); + assert(data[0].anonymous); // Anonymous data field exists done(); }); }); @@ -707,10 +708,12 @@ describe('Post\'s', () => { let uid; let postData; let adminUid; + let uid2; before(async () => { - // Create a regular user + // Create two regular user uid = await user.create({ username: 'regularuser' }); + uid2 = await user.create({ username: 'regularuser2' }); // Create an admin user adminUid = await user.create({ username: 'adminuser' }); @@ -728,7 +731,7 @@ describe('Post\'s', () => { it('should display "Anonymous User" if the post is anonymous and the user is not an admin', async () => { // Simulate a request by a non-admin user - const postSummary = await posts.getPostSummaryByPids([postData.pid], uid, {}); + const postSummary = await posts.getPostSummaryByPids([postData.pid], uid2, {}); // console.log(postSummary[0]); // Check that the username is set to "Anonymous User" From 4813401c19440bf01196372d74f12fe886e4c969 Mon Sep 17 00:00:00 2001 From: Sophie Feng Date: Wed, 9 Oct 2024 20:38:49 -0400 Subject: [PATCH 32/33] commenting out unneeded code as addressed in code review --- dump.rdb | Bin 56885 -> 55278 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/dump.rdb b/dump.rdb index 538e346d4ad52ab0991201fc4a67fcc3924caef0..f3ce27bc8ff8d2fda3908ab943ca2a7477520b8a 100644 GIT binary patch delta 785 zcmaKpUr1AN6vywq+uSaj>~1XzZF8tKxy`9Dh!jdI)3S$N3aVAR?%uYsc{jXwW`Trw zwW92g=OIW5i4cOQSp?}6Y=4~YLGh(O{(<{eM2Nwqhk97M&Oa~F>+k%|=X}2Byqi$0 zzE(V}Hae_o?{7_nW9Z5@rY#=*MUEbwAIFLjV8gqxi~#nSS^KGBsbmR75EC*43xm6l zd2k=ao27)XzztX{Q2d3cw;3YgV2Gk?!y%5Z^|w)8h7?gJG9v1o1jkVA9$&2|#PSTw z+oa^wRfxuRQhK{G81hg-t4ihdv*l81>Y_+EhWiyf<>f@ofjk%WmxdjxoL)P(S41z1 z#JHlv&s=l6uu^Gy>Mrt3)Vthv_XVU(L@PyN%w5?X#mc4hunWbrhJ!FFknm>0rb)}H zxdc$d-Nw=a)PJr6B2oe?Gzm}N>mVkWz}~9^CQ&4p*JgY>G8-*;596nmD4Hdz)^XPx zLrOV0{AfG`4^ky?`~(U8eKqi8cD?u8?78yIad?&}@CHMzRM2Qd5ClVRu}ml5=%+O( z`nD#@%pVK|;sOEa5#S;D@JP(!N8 zqfE+r_U61^OIIOO$IWoYl8^a)=zQM)W_SLB?gI(0nvHNJ9)ReiRdzAcG?tRLBn%wU zLCc~Aq-q8fw9RZX_7AbqyvUo|;J;5Vg(^!J%iXm;zJD^x21QpQVN^g!rpz4Onl zZl9YXh?T@ic~(Wl}Q7vl&@YSuxEeg`j?}5G6j> zYNNCwaM{Eln~)_{kkn>=p)W*wS85?qVW1?FR@l5H)(Wl|E42(YMp+*(EEV)_P4}-CmJ;} zWZR1uo*)L79JZ?;v{Ep;35lT1oP_n9lfjuHmGF;IxtxJhxvJR52~s^($o@%<7!Tvk|uPPKC`$S%Kp>Y%oZC zm_V(Jcg4f;aA%~eBfMoxdq*_f;ngqInazc;GGRH7u7n$>Vo=+>5`N(~lC4Xut?>5t zA?ln59)5Qe_V}Fe$<1z8g%FLXt^ppNeAR-@0wYJZfd94+Ubqv4S8koKOykYa4!pS& z&h1zMhwmJsm^R~(cG(GmdjU`Rw((?6P*laHe}hl;tZ$l%*r4ch!QA}nXUbJYrXiV? za~VVvj*j_jE~8>>QpBSXS`Htw%;M8GPMJV%-VMV3ML)cE-42G$|YIU5r#3OA2&^ABgrD|F)>$I);O>LBWGC497a5U zCJ!IyT_FGTq6L$Mw?1uaDv>L{z{*lel!PT4lcatLmv-;*kKlz7)}l!%`cz5_v6o_L zUmD@7CQNJmgI8O`tAA-L5z|}&i@{X01&DU7YMZ6K%d6i$9Uu`R8dG4ytP!yw%9zsJ zY!LsTl&-SlHg|^W45&t@szZK?2^uE&YQBlO;DP(|gYJtZ0(k-D1c}CA6E>jMZH!iQ zf7ugeZ)`MP{8y?_NZ{)A{r2*~3mt`CR|j34OvwkiR4`~L@Qx(Bp>7xX8j>`Y`;6r= zOlTV(1dhijw98hYZ#6w00#CTLQuy$H2){2j;2WqAzAKKTFDn#{guVKFS@_Wa6^SFk zk^ETjLcncOq?ZN`o*and==0E~ti?I0=XuKv_Clredt?_piXNe6Jkb5)*ig0Eu!UG} zEagohC@x~cXdddFz2w$@rb Date: Wed, 9 Oct 2024 20:39:59 -0400 Subject: [PATCH 33/33] commenting out unneeded code as addressed in code review --- src/api/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/posts.js b/src/api/posts.js index 1f6d685da9..79c8726358 100644 --- a/src/api/posts.js +++ b/src/api/posts.js @@ -42,7 +42,7 @@ postsAPI.get = async function (caller, data) { // Reference to ChatGPT // Add the anonymous field to the response - // post.anonymous = post.isAnon || false; + // post.anonymous = post.anonymous || false; return post; };