1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-29 11:00:10 +02:00

fix: various small fixes (#3519)

This commit is contained in:
Dag
2023-07-09 10:08:30 +02:00
committed by GitHub
parent f0a504bb9a
commit dfe78fb379
5 changed files with 24 additions and 14 deletions

View File

@@ -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 = [];