diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-08-09 22:19:51 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-08-09 22:19:51 +0200 |
commit | 4886d088e9889d828bc0e43de4f8844f210f785d (patch) | |
tree | 2761dd627746790f62c31a1e38b21a538ace503b /include | |
parent | 6eec6e2d65d5d17665fd8a4d8ecc1b22ed364f24 (diff) | |
download | volse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.tar.gz volse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.tar.bz2 volse-hubzilla-4886d088e9889d828bc0e43de4f8844f210f785d.zip |
use stripos() to match the body against terms in format_hashtags()
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 572b43916..54ad9ec7a 100644 --- a/include/text.php +++ b/include/text.php @@ -1574,7 +1574,7 @@ function format_hashtags(&$item) { continue; if(empty($t['url'])) continue; - if(strpos($item['body'], $t['url']) || strpos($item['body'], '#' . $t['term'])) + if(strpos($item['body'], $t['url']) || stripos($item['body'], '#' . $t['term'])) continue; if($s) $s .= ' '; |