mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 22:28:22 +01:00
simplify commits detection
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
615df56b19
commit
ca44ab943a
@ -48,10 +48,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
||||
or $this->returnError('No results for LWNprev', 404);
|
||||
|
||||
|
||||
foreach($html->find('li') as $commit){
|
||||
if(!in_array('commit',explode(' ',$commit->getAttribute("class")))){
|
||||
continue;
|
||||
}
|
||||
foreach($html->find('li.commit') as $commit){
|
||||
|
||||
$item = new \Item();
|
||||
$item->uri=$param['uri'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user