1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 08:07:33 +02:00

[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

View File

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