From dc56d8560d0786a50f5131d114e0fb17b5b85d9c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 22 Jul 2019 20:38:10 +0200 Subject: pleroma uses slightly different URLs in body - also look for the string --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index 5a0e6ad3d..1cde6bb01 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'])) + if(strpos($item['body'], $t['url']) || strpos($item['body'], '#' . $t['term'])) continue; if($s) $s .= ' '; -- cgit v1.2.3