aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-07-18 13:52:39 +0200
committerMario Vavti <mario@mariovavti.com>2019-07-18 13:52:39 +0200
commit8ced3699c21bd76f1a1f3c08b97dd7bf41d3e88a (patch)
tree83493cc12a54f1f330689170627bb97d8ec2615c /Zotlabs/Lib/Activity.php
parentc4de5b45dfead76bc564d306ac2c3f0c407dbe6f (diff)
downloadvolse-hubzilla-8ced3699c21bd76f1a1f3c08b97dd7bf41d3e88a.tar.gz
volse-hubzilla-8ced3699c21bd76f1a1f3c08b97dd7bf41d3e88a.tar.bz2
volse-hubzilla-8ced3699c21bd76f1a1f3c08b97dd7bf41d3e88a.zip
fallback to id if href is not available
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index bd84d877e..520c456cc 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -361,7 +361,7 @@ class Activity {
switch($t['type']) {
case 'Hashtag':
- $ret[] = [ 'ttype' => TERM_HASHTAG, 'url' => $t['href'], 'term' => escape_tags((substr($t['name'],0,1) === '#') ? substr($t['name'],1) : $t['name']) ];
+ $ret[] = [ 'ttype' => TERM_HASHTAG, 'url' => ((isset($t['href'])) ? $t['href'] : $t['id']), 'term' => escape_tags((substr($t['name'],0,1) === '#') ? substr($t['name'],1) : $t['name']) ];
break;
case 'Mention':