fix: logic bug in limiting

This commit is contained in:
Dag 2022-05-09 21:02:21 +02:00
parent a28dca2c9d
commit 76084cdcca
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class GettrBridge extends BridgeAbstract
$api = sprintf( $api = sprintf(
'https://api.gettr.com/u/user/%s/posts?offset=0&max=%s&dir=fwd&incl=posts&fp=f_uo', 'https://api.gettr.com/u/user/%s/posts?offset=0&max=%s&dir=fwd&incl=posts&fp=f_uo',
$this->getInput('user'), $this->getInput('user'),
max($this->getInput('limit'), 20) min($this->getInput('limit'), 20)
); );
$data = json_decode(getContents($api), false); $data = json_decode(getContents($api), false);