]> git.mxchange.org Git - friendica-addons.git/blobdiff - nsfw/nsfw.php
Merge pull request #140 from repat/master
[friendica-addons.git] / nsfw / nsfw.php
index 57511f0055730c28cf1585743fb4440483bfa3a1..9a40416db24863ec62d2d41d797b0b3cfa443e10 100755 (executable)
@@ -126,7 +126,7 @@ function nsfw_prepare_body(&$a,&$b) {
        $found = false;
        if(count($arr)) {
 
-               $body = $b['title'] . ' ' . nsfw_extract_photos($b['html']);
+               $body = $b['item']['title'] . "\n" . nsfw_extract_photos($b['html']);
 
                foreach($arr as $word) {
                        $word = trim($word);
@@ -144,7 +144,7 @@ function nsfw_prepare_body(&$a,&$b) {
                                        $found = true;
                                        break;
                                }
-                               if(stristr($b['item']['tag'], ']' . $word . '[' )) {
+                               if(stristr($b['item']['tags'], '>' . $word . '<' )) {
                                        $found = true;
                                        break;
                                }