aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-03-29 17:47:50 +0200
committerGitHub <noreply@github.com>2018-03-29 17:47:50 +0200
commit20ac91703d54679d2e5080ba2d4985e93986a515 (patch)
treedca933ae97c7eeaf855d8522163e989317ce918f /include/text.php
parentc98776923a3aed4a0a17ca1412787de3b718eba9 (diff)
parente06e64823fbecbe67bcf59897ecad6b9c402744e (diff)
downloadvolse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.gz
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.bz2
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.zip
Merge pull request #1 from redmatrix/dev
Dev
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index c1e064857..f9cefd020 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1491,7 +1491,7 @@ function format_hashtags(&$item) {
$term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ;
if(! trim($term))
continue;
- if(strpos($item['body'], $t['url']))
+ if($t['url'] && strpos($item['body'], $t['url']))
continue;
if($s)
$s .= ' ';