From: Friendika Date: Mon, 24 Oct 2011 22:53:20 +0000 (-0700) Subject: nsfw update to shared tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94e8c206ec0b465b71df36203682174a881d0085;p=friendica-addons.git nsfw update to shared tags --- diff --git a/nsfw.tgz b/nsfw.tgz index e7c959e8..fddda657 100644 Binary files a/nsfw.tgz and b/nsfw.tgz differ 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'] = ''; } }