From 94e8c206ec0b465b71df36203682174a881d0085 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 24 Oct 2011 15:53:20 -0700 Subject: [PATCH] nsfw update to shared tags --- nsfw.tgz | Bin 1396 -> 1427 bytes nsfw/nsfw.php | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nsfw.tgz b/nsfw.tgz index e7c959e8e692ac13a7746ea7aacf794887483e6d..fddda657aaa92996ec7b3b0f498e661c9d555fb6 100644 GIT binary patch delta 1409 zcmV-{1%CSU3X=>6YmtwjW0!8d65v|M zMC}56K|&RO(wDOwWOUA7?B^UVs)La>}DP6N>tfF}`R*LQ_&? z8khpRp0uj=@V)5n{?F(6Bc1U;{SUhR?#BGrb@%_Es{f~;;};lr&-0?^&pmh!@5qzE z0VaP@@-HftmFl$G=KE!#=R%I)En84{yK*%g&$Z4+QM7h`D;CQL5mT1YXo<`xMjC&S z=cNUYjVfT$b%Je1lPnAO%mg9nj44g!WG=)a407x=MAFGrBsW150+J+xM_Z|GmMzW} z@7~caR#xC}GEr1(>~-oPIJF~(TQ2~FXRRHkBlc8ZlWK9LCmqVQ#K1XJ=1j8elxI)Hkj6XPSE&m z4PiN(LFvJUa`q+c3h#5G6dG9iXMcZ+CoKFEWZmSP_pEk04D6tCW(JivID>pJg9@Cj z^U0WX92xGTos(EH_T5WGV$Y&-=MeV?t-;6pdIb)2!Qsh)DmjvUA1%jW(+D#SnGRNg|}a> zXj}eeSx;?QKTy?XyD|Cw{n?-A!G_|&rR|_~^>z8*#94T`jpH^h_e^Qj8BaxM3^jSN z&RHC~uW+8VX1{*_o8i3OHE@5k5pP?zE-_wYnXAApJFNx(rIc@-TU;$W6e1;J(2sd0 z5*i|Rv)p#Rbu)r6UKr@QJ<*DocMAT(#?*D$;IdiDm11kXv@CyR>r+%>QNrw^ zFin@i<$0jV48b6{ToVgH{~ucX0U2@Hf8tWboYt2>bdK7v({u= z344Q${e&re0^W>(3r;bQz;`EX7_B*) delta 1378 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)pZYnF{A{soxU+1>Ch0B>SD=J63^|CDI_b!UAai& zvm>KCbPl(dC1t&CRuIMu!@6!IS`zb4!C%;zHcR{xeXWm{B~5*bf5I0fx&4)%u$ZMM zq@|JgxDm^Vdjy4tHp-1De6r!}+k!Q8HoeP|NO3-xF7Jcj_Wd(9kDpWX#tAQ74sFt1 zq90+^fNUD=!|Cp`Y1IeUEnuz5wi0%#jQxZue3spefD2BKz;_bRkTsLw2*Bm#&)!xm ksGx!hDyX1>3M#0e6oLvWsGx!hD)?6T4^(j(RRAae01N55D*ylh diff --git a/nsfw/nsfw.php b/nsfw/nsfw.php index dba9f1e8..22d65d05 100644 --- a/nsfw/nsfw.php +++ b/nsfw/nsfw.php @@ -87,14 +87,18 @@ function nsfw_prepare_body(&$a,&$b) { continue; } - if(stristr($b,$word)) { + if(stristr($b['html'],$word)) { $found = true; break; } + if(stristr($b['item']['tag'], ']' . $word . '[' )) { + $found = true; + break; + } } } if($found) { $rnd = random_string(8); - $b = ''; + $b['html'] = ''; } } -- 2.39.5