diff --git a/src/Object/Api/Mastodon/Status.php b/src/Object/Api/Mastodon/Status.php index 288938855..eae53ef4a 100644 --- a/src/Object/Api/Mastodon/Status.php +++ b/src/Object/Api/Mastodon/Status.php @@ -114,7 +114,7 @@ class Status extends BaseDataTransferObject $visibility = ['public', 'private', 'unlisted']; $this->visibility = $visibility[$item['private']]; - $languages = json_decode($item['language'], true); + $languages = json_decode($item['language'] ?? '', true); if (is_array($languages)) { reset($languages); $this->language = key($languages);