Skip to content

Commit aa6c6f0

Browse files
authored
Merge pull request #497 from szepeviktor/patch-3
Remove fallback from Api
2 parents 4cd535f + addca16 commit aa6c6f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Adapters/Twitter/Api.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ protected function fetchData(): array
2929
$this->extractor->getCrawler()->addDefaultHeaders(array('Authorization' => "Bearer $token"));
3030
$this->endpoint = $this->extractor->getCrawler()->createUri("https://api.twitter.com/2/tweets/{$id}?expansions=author_id,attachments.media_keys&tweet.fields=created_at&media.fields=preview_image_url,url&user.fields=id,name");
3131

32-
$data = $this->fetchJSON($this->endpoint);
33-
34-
return $data ?? [];
32+
return $this->fetchJSON($this->endpoint);
3533
}
3634
}

0 commit comments

Comments
 (0)