]> git.mxchange.org Git - friendica.git/commitdiff
AP Bugfix: We hadn't transmitted an tag url at all ...
authorMichael <heluecht@pirati.ca>
Sun, 20 Jan 2019 23:13:55 +0000 (23:13 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Jan 2019 23:13:55 +0000 (23:13 +0000)
src/Protocol/ActivityPub/Transmitter.php

index c8285aa35a9e3449d2682f314e0656948fa1a567..89986f49239ba1451945e5c92f5d8bf49fd5d206 100644 (file)
@@ -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'])) {