mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:03:41 +00:00
AP Bugfix: We hadn't transmitted an tag url at all ...
This commit is contained in:
parent
e2427eb9da
commit
70c183b495
1 changed files with 2 additions and 1 deletions
|
@ -755,7 +755,8 @@ class Transmitter
|
|||
$terms = Term::tagArrayFromItemId($item['id']);
|
||||
foreach ($terms as $term) {
|
||||
if ($term['type'] == TERM_HASHTAG) {
|
||||
$tags[] = ['type' => 'Hashtag', 'href' => $term['url'], 'name' => '#' . $term['term']];
|
||||
$url = System::baseUrl() . '/search?tag=' . urlencode($term['term']);
|
||||
$tags[] = ['type' => 'Hashtag', 'href' => $url, 'name' => '#' . $term['term']];
|
||||
} elseif ($term['type'] == TERM_MENTION) {
|
||||
$contact = Contact::getDetailsByURL($term['url']);
|
||||
if (!empty($contact['addr'])) {
|
||||
|
|
Loading…
Reference in a new issue