mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 09:35:28 +03:00
[Parler] fix: use new api endpoint (#2831)
They also modified the json structure.
This commit is contained in:
parent
10eb1c9a95
commit
c6ba3e5280
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ final class ParlerBridge extends BridgeAbstract
|
|||
|
||||
private function fetchParlerProfileFeed(string $user): array
|
||||
{
|
||||
$json = getContents('https://parler.com/open-api/profile-feed.php', [], [
|
||||
$json = getContents('https://parler.com/open-api/ProfileFeedEndpoint.php', [], [
|
||||
CURLOPT_POSTFIELDS => http_build_query([
|
||||
'user' => $user,
|
||||
'page' => '1',
|
||||
|
@ -75,6 +75,6 @@ final class ParlerBridge extends BridgeAbstract
|
|||
if ($response->data === []) {
|
||||
throw new \Exception('Unknown Parler username');
|
||||
}
|
||||
return $response->data->posts;
|
||||
return $response->data;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue