diff options
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 0e38de319..79229acfe 100755 --- a/include/items.php +++ b/include/items.php @@ -2313,6 +2313,10 @@ function check_item_source($uid,$item) { if(! $r[0]['src_patt']) return true; + require_once('include/html2plain.php'); + $text = prepare_text($item['body'],$item['mimetype']); + $text = html2plain($text); + $tags = ((count($items['term'])) ? $items['term'] : false); $words = explode("\n",$r[0]['src_patt']); @@ -2323,7 +2327,7 @@ function check_item_source($uid,$item) { if($t['type'] == TERM_HASHTAG && substr($t,1) === $word) return true; } - if(stristr($item['body'],$word) !== false) + if(stristr($text,$word) !== false) return true; } } |