Closed matgott closed 1 month ago
Man, that a very noob mistake by me :(
Here, it should have been return new Tweet(tweet.quoted_status_result.result as ITweet)
Thanks for pointing it out.
Man, that a very noob mistake by me :(
Here, it should have been
return new Tweet(tweet.quoted_status_result.result)
Thanks for pointing it out.
Haha it may happen! Also I ran my code for a different user and I didn't get the error. Then I try with this one and it failed, not easy to catch.
I wonder why while testing it with a tweet with quotes, that error wasn't thrown. But this tweet did (and thankfully so). Will have to check that too.
Please upgrade to v4.1.3
. Issue has been fixed.
Class
Tweet
is called with atweet
:new Tweet(tweet)
When it tries to get the quoted tweet it does:
this.quoted = this.getQuotedTweet(tweet);
(same tweet object reference)Inside
getQuotedTweet
it does:If it is a normal tweet it calls again
new Tweet(tweet)
heretweet
is the same object as at the begginning. So it is callingnew Tweet
again with the same tweet object that's going to callgetQuotedTweet
and it'll callnew Tweet
again and again.Instead of
return new Tweet(tweet);
shouldn't it bereturn new Tweet(tweet.result);
(idk)Also this is happening for a Tweet that has +300 quotes/retweets.