twindle-cli\src\cli.js- added a flag called -r to include replies on threads - this cannot be used with user timeline -u option. If -r is not mentioned, it defaults to false
twindle-cli\src\index.js - added a new parameter called includeReplies that will be sent to the twitter code to include replies or not
twindle-cli\src\renderer\templates\Thread.hbs - On each tweet of the thread, if there are replies made by the user get the question asked by some person and the reply made by the author. The structure for the replies is added to the issue #821 for reference
twindle-cli\src\twitter\transformations\rich-rendering.js - fixUserDescription process was modified to accept and return user object rather than tweets object
twindle-cli\src\twitter\twitter.js: Modified getTweetsFromArray and getTweetsFromThreads functions to accept the includeReplies parameter and if this is set to true, then from the thread tweets find out ids of tweets to which the author has replied to, and with that information, update the replies array on every tweet of the thread.
twindle-cli\src\transformations\user-timeline-endpoint.js
twindle-cli\src\transformations\tweet-endpoint.js: Use the modified fixUserDescription as explained above and format the date from the responseJSON and not the tweet object because the created_at attribute has been deleted from all thread tweets. It is only present for user timeline tweets.
The other transformation files are primarily for processReplies by which we get the tweet ids of those tweets which were questions asked by other users and with these ids we make an API call and get the tweet details to set up the replies array on the data tweets of the thread.
Things to do
Format the hbs template file to display the replies correctly. Currently it displays Question text, Asked By name and Answer text. I need @PuruVJ's help for this.
Attach Screenshot
Note 2 code reviewer approval needed. Approach in twitter group & discord channel.
Description
Things to do
Attach Screenshot