1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

bridges: Return parent::getURI by default

This commit is contained in:
logmanoriginal
2017-02-14 22:36:33 +01:00
parent c4169f1579
commit 512a4f292b
21 changed files with 100 additions and 38 deletions

View File

@@ -53,13 +53,17 @@ class GithubIssueBridge extends BridgeAbstract {
}
public function getURI(){
$uri = static::URI . $this->getInput('u') . '/' . $this->getInput('p') . '/issues';
if($this->queriedContext === 'Issue comments'){
$uri .= '/' . $this->getInput('i');
} elseif($this->getInput('c')){
$uri .= '?q=is%3Aissue+sort%3Aupdated-desc';
if(!is_null($this->getInput('u')) && !is_null($this->getInput('p'))){
$uri = static::URI . $this->getInput('u') . '/' . $this->getInput('p') . '/issues';
if($this->queriedContext === 'Issue comments'){
$uri .= '/' . $this->getInput('i');
} elseif($this->getInput('c')){
$uri .= '?q=is%3Aissue+sort%3Aupdated-desc';
}
return $uri;
}
return $uri;
return parent::getURI();
}
protected function extractIssueComment($issueNbr, $title, $comment){