Skip to content

Commit

Permalink
[FSecureBlogBridge] Limit number of returned items (RSS-Bridge#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bockiii authored and floviolleau committed Jan 25, 2022
1 parent 4ccf6e1 commit c4223b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridges/FSecureBlogBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public function collectData() {
private function collectCategory($category) {
$url = $this->getURI() . "/category/$category/";
while ($url) {
//Limit total amount of requests
if(count($this->items) >= 20) {
break;
}
$url = $this->collectListing($url);
}
}
Expand Down

0 comments on commit c4223b4

Please sign in to comment.