From: Michael Date: Sun, 20 Jan 2019 23:13:55 +0000 (+0000) Subject: AP Bugfix: We hadn't transmitted an tag url at all ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70c183b4959fcffcd700d2343be8c3eddcc1e8ef;p=friendica.git AP Bugfix: We hadn't transmitted an tag url at all ... --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index c8285aa35a..89986f4923 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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'])) {