aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/text.php b/include/text.php
index 9d76f9d78..2d1bc4222 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1460,10 +1460,7 @@ function format_hashtags(&$item) {
if(strpos($item['body'], $t['url']))
continue;
- if($s)
- $s .= '&nbsp';
-
- $s .= '#<a href="' . zid($t['url']) . '" >' . $term . '</a>';
+ $s .= '<span class="badge badge-pill badge-info"><i class="fa fa-hashtag"></i>&nbsp;<a class="text-white" href="' . zid($t['url']) . '" >' . $term . '</a></span> ';
}
}
@@ -1484,10 +1481,7 @@ function format_mentions(&$item) {
if(strpos($item['body'], $t['url']))
continue;
- if($s)
- $s .= '&nbsp';
-
- $s .= '@<a href="' . zid($t['url']) . '" >' . $term . '</a>';
+ $s .= '<span class="badge badge-pill badge-success"><i class="fa fa-at"></i>&nbsp;<a class="text-white" href="' . zid($t['url']) . '" >' . $term . '</a></span> ';
}
}