0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-06-30 10:33:42 +00:00

[GettrBridge] fix: don't use php7.2 feature

The constant "JSON_THROW_ON_ERROR" is not present in
PHP version 7.2 or earlier
This commit is contained in:
Dag 2022-03-22 21:08:15 +01:00
parent ec90bd905e
commit 5aa163e7d6

View File

@ -32,7 +32,7 @@ class GettrBridge extends BridgeAbstract
$this->getInput('user'),
max($this->getInput('limit'), 20)
);
$data = json_decode(getContents($api), false, JSON_THROW_ON_ERROR);
$data = json_decode(getContents($api), false);
foreach ($data->result->aux->post as $post) {
$this->items[] = [