Wijzigingen voor nieuwe API

This commit is contained in:
NH Gooi
2024-06-17 23:11:07 +02:00
parent 738107515c
commit 80256669b1
2 changed files with 6 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ class NewsController extends Controller
break;
case 2:
$source = $apiResult->source;
$source = $apiResult->source->article;
$newsItem->published = self::TimestampToDateTime($source->created);
$newsItem->edited = self::TimestampToDateTime($source->updated);
$newsItem->author = $source->author;