[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
1 changed files with 1 additions and 1 deletions

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[] = [