Skip to content

Commit

Permalink
added support for quoted tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
saifalfalah committed Nov 24, 2021
1 parent 9ca5e7a commit 7dd95be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/http/post-index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ exports.handler = async function http(req) {

data = data.data;

// If it is a quoted tweet, we find the data for the tweet quoted
if (data.quoted_status_id) {
data = data.quoted_status;
}

checkIfContainsVideoOrGif(data);

// Getting bitrate to calculate the size of the video
Expand Down

0 comments on commit 7dd95be

Please sign in to comment.