do not format hashtags with missing url
This commit is contained in:
parent
71056e1db1
commit
c4de5b45df
@ -1572,7 +1572,9 @@ function format_hashtags(&$item) {
|
|||||||
$term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ;
|
$term = htmlspecialchars($t['term'], ENT_COMPAT, 'UTF-8', false) ;
|
||||||
if(! trim($term))
|
if(! trim($term))
|
||||||
continue;
|
continue;
|
||||||
if($t['url'] && strpos($item['body'], $t['url']))
|
if(empty($t['url']))
|
||||||
|
continue;
|
||||||
|
if(strpos($item['body'], $t['url']))
|
||||||
continue;
|
continue;
|
||||||
if($s)
|
if($s)
|
||||||
$s .= ' ';
|
$s .= ' ';
|
||||||
|
Reference in New Issue
Block a user