[RedditBrige] Fix old feed URLs (#3087)

* flair filter

* syntax

* fix multi & user feeds

* '

* dont replace ,

* fix old reddit feeds
This commit is contained in:
joshinat0r 2022-10-05 19:35:02 +02:00 committed by GitHub
parent 5d18852108
commit 8b7b32d516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class RedditBridge extends BridgeAbstract
$keywords = '';
}
if (!($this->getInput('f') === '') && $this->queriedContext == 'single') {
if (!empty($this->getInput('f')) && $this->queriedContext == 'single') {
$flair = $this->getInput('f');
$flair = str_replace(' ', '%20', $flair);
$flair = 'flair%3A%22' . $flair . '%22%20';