Skip to content

Commit

Permalink
Merge pull request #497 from szepeviktor/patch-3
Browse files Browse the repository at this point in the history
Remove fallback from Api
  • Loading branch information
oscarotero authored Sep 7, 2022
2 parents 4cd535f + addca16 commit aa6c6f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Adapters/Twitter/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ protected function fetchData(): array
$this->extractor->getCrawler()->addDefaultHeaders(array('Authorization' => "Bearer $token"));
$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");

$data = $this->fetchJSON($this->endpoint);

return $data ?? [];
return $this->fetchJSON($this->endpoint);
}
}

0 comments on commit aa6c6f0

Please sign in to comment.