]> git.mxchange.org Git - friendica.git/commitdiff
Last "term" element renamed
authorMichael <heluecht@pirati.ca>
Fri, 1 May 2020 15:27:56 +0000 (15:27 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 1 May 2020 15:27:56 +0000 (15:27 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 04c7531db2ee15a850141275275c89deee037a88..16b7b039a9cfdab343e03d6ea5087a4103dcfc9c 100644 (file)
@@ -1015,8 +1015,8 @@ class Transmitter
                $terms = Tag::getByURIId($item['uri-id'], [Tag::HASHTAG, Tag::MENTION, Tag::IMPLICIT_MENTION, Tag::EXCLUSIVE_MENTION]);
                foreach ($terms as $term) {
                        if ($term['type'] == Tag::HASHTAG) {
-                               $url = DI::baseUrl() . '/search?tag=' . urlencode($term['term']);
-                               $tags[] = ['type' => 'Hashtag', 'href' => $url, 'name' => '#' . $term['term']];
+                               $url = DI::baseUrl() . '/search?tag=' . urlencode($term['name']);
+                               $tags[] = ['type' => 'Hashtag', 'href' => $url, 'name' => '#' . $term['name']];
                        } else {
                                $contact = Contact::getDetailsByURL($term['url']);
                                if (!empty($contact['addr'])) {