mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-19 14:52:13 +02:00
bridges: add context to detectParameters (#3607)
* bridges: add context to detectParameters Some bridges did not return the context parameter but they used it in the parameters * bridges: add context to detectParameters Fix test for InstagramBridge
This commit is contained in:
@@ -301,10 +301,12 @@ class RedditBridge extends BridgeAbstract
|
||||
|
||||
if ($path[1] == 'r') {
|
||||
return [
|
||||
'context' => 'single',
|
||||
'r' => $path[2]
|
||||
];
|
||||
} elseif ($path[1] == 'user') {
|
||||
return [
|
||||
'context' => 'user',
|
||||
'u' => $path[2]
|
||||
];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user