<?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
*
$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)) {