After @Mira-Alf added the feature to merge multiple threads into one single PDF, there's been some duplication in the twitter.js file, which can be improved. We need to clean up stuff, and standardize one single function.
The function recently introduced, getTweetsFromThreads has similar logic as the getTweetFromID, and getting a single tweet is a special case of getting many threads, so I say, we make the getTweetsFromThreads function the de-facto function for appropriately getting tweets. This will eliminate lot of duplictated code, and reduce the surface area for bugs,
After @Mira-Alf added the feature to merge multiple threads into one single PDF, there's been some duplication in the twitter.js file, which can be improved. We need to clean up stuff, and standardize one single function.
The function recently introduced,
getTweetsFromThreads
has similar logic as thegetTweetFromID
, and getting a single tweet is a special case of getting many threads, so I say, we make thegetTweetsFromThreads
function the de-facto function for appropriately getting tweets. This will eliminate lot of duplictated code, and reduce the surface area for bugs,Your thoughts @proful @johnjacobkenny @Mira-Alf ?