diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-07-18 13:19:10 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-07-18 13:19:10 +0200 |
commit | c4de5b45dfead76bc564d306ac2c3f0c407dbe6f (patch) | |
tree | 4e4f5ce1acb4fcf30119de947284d9b207dfea59 /include | |
parent | 71056e1db11caf7b30627bbdc5c44c21405966ae (diff) | |
download | volse-hubzilla-c4de5b45dfead76bc564d306ac2c3f0c407dbe6f.tar.gz volse-hubzilla-c4de5b45dfead76bc564d306ac2c3f0c407dbe6f.tar.bz2 volse-hubzilla-c4de5b45dfead76bc564d306ac2c3f0c407dbe6f.zip |
do not format hashtags with missing url
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 17fd1bfe4..5a0e6ad3d 100644 --- a/include/text.php +++ b/include/text.php @@ -1572,7 +1572,9 @@ function format_hashtags(&$item) { $term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ; if(! trim($term)) continue; - if($t['url'] && strpos($item['body'], $t['url'])) + if(empty($t['url'])) + continue; + if(strpos($item['body'], $t['url'])) continue; if($s) $s .= ' '; |