mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
fix: various small fixes (#3519)
This commit is contained in:
parent
f0a504bb9a
commit
dfe78fb379
5 changed files with 24 additions and 14 deletions
|
@ -23,7 +23,10 @@ class CuriousCatBridge extends BridgeAbstract
|
|||
|
||||
$apiJson = getContents($url);
|
||||
|
||||
$apiData = json_decode($apiJson, true);
|
||||
$apiData = Json::decode($apiJson);
|
||||
if (isset($apiData['error'])) {
|
||||
throw new \Exception($apiData['error_code']);
|
||||
}
|
||||
|
||||
foreach ($apiData['posts'] as $post) {
|
||||
$item = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue