aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-07-22 20:38:10 +0200
committerMario Vavti <mario@mariovavti.com>2019-07-22 20:38:10 +0200
commitdc56d8560d0786a50f5131d114e0fb17b5b85d9c (patch)
tree2a2f7294865176f8f3054ad01ebdd13b3bbd077a
parent81ecea29c839c8f914be59acbddd4955673ee2f6 (diff)
downloadvolse-hubzilla-dc56d8560d0786a50f5131d114e0fb17b5b85d9c.tar.gz
volse-hubzilla-dc56d8560d0786a50f5131d114e0fb17b5b85d9c.tar.bz2
volse-hubzilla-dc56d8560d0786a50f5131d114e0fb17b5b85d9c.zip
pleroma uses slightly different URLs in body - also look for the string
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
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 .= ' ';