]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/MatchInterests.php
Changes:
[friendica.git] / src / Module / Contact / MatchInterests.php
index c9601a0fdf426d9877111cb6c239218580a48345..ac352440496e9ba71df435716fe4ea19fd2b4f4d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -125,14 +125,14 @@ class MatchInterests extends BaseModule
                        $result = $this->httpClient->post($server . '/search/user/tags', $searchParameters);
                        if (!$result->isSuccess()) {
                                // try legacy endpoint
-                               $result = $this->httpClient->post($server . '/contact/search/tags', $searchParameters);
+                               $result = $this->httpClient->post($server . '/msearch', $searchParameters);
                                if (!$result->isSuccess()) {
                                        $this->logger->notice('Search-Endpoint not available for server.', ['server' => $server]);
                                        continue;
                                }
                        }
 
-                       $entries = $this->parseContacts(json_decode($result->getBody()), $entries, $limit);
+                       $entries = $this->parseContacts(json_decode($result->getBodyString()), $entries, $limit);
                }
 
                if (empty($entries)) {