mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
fix: logic bug in limiting
This commit is contained in:
parent
a28dca2c9d
commit
76084cdcca
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user