[WordPress] Limit feed to 20 items (#1801)

This commit is contained in:
ORelio 2020-10-21 11:59:04 +02:00 committed by GitHub
parent 364b5282a3
commit 2714c3d816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ class WordPressBridge extends FeedExpander {
returnClientError('The url parameter must either refer to http or https protocol.');
}
try{
$this->collectExpandableDatas($this->getURI() . '/feed/atom/');
$this->collectExpandableDatas($this->getURI() . '/feed/atom/', 20);
} catch (Exception $e) {
$this->collectExpandableDatas($this->getURI() . '/?feed=atom');
$this->collectExpandableDatas($this->getURI() . '/?feed=atom', 20);
}
}