mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +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:
parent
6cc4cf24dc
commit
52d3cce59d
13 changed files with 115 additions and 80 deletions
|
@ -455,11 +455,12 @@ class SkimfeedBridge extends BridgeAbstract
|
|||
return null;
|
||||
}
|
||||
|
||||
foreach (self::PARAMETERS as $channels) {
|
||||
foreach (self::PARAMETERS as $context => $channels) {
|
||||
foreach ($channels as $box_name => $box) {
|
||||
foreach ($box['values'] as $name => $channel_url) {
|
||||
if (static::URI . $channel_url === $url) {
|
||||
return [
|
||||
'context' => $context,
|
||||
$box_name => $name,
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue