0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-06-30 18:42:55 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Dag
cb74ebb636 consistent commas 2025-03-23 20:40:55 +01:00
Dag
01e356d805 lint 2025-03-23 20:38:13 +01:00

View File

@ -39,7 +39,7 @@ class RedditBridge extends BridgeAbstract
'Relevance' => 'relevance',
'New' => 'new',
'Top' => 'top',
'Comments' => 'comments'
'Comments' => 'comments',
],
'defaultValue' => 'Hot'
],
@ -192,13 +192,11 @@ class RedditBridge extends BridgeAbstract
if ($data->num_comments < $min_comments || $data->score < $min_score) {
continue;
}
}
else if ($min_score >= 0) {
} elseif ($min_score >= 0) {
if ($data->score < $min_score) {
continue;
}
}
else if ($min_comments >= 0) {
} elseif ($min_comments >= 0) {
if ($data->num_comments < $min_comments) {
continue;
}