From caa74702b15b8640370e1ff3c98d8e3bf18924e1 Mon Sep 17 00:00:00 2001 From: Jonathan David Amery Date: Tue, 14 Aug 2018 12:05:09 +0100 Subject: [PATCH] With the new embedded tweet code there's no reason not to expand embedded tweets inside embedded tweets. Signed-off-by: Matthew Vernon --- commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.py b/commands.py index f7444d1..431a113 100755 --- a/commands.py +++ b/commands.py @@ -576,7 +576,7 @@ def getTweet(urlstring,twitapi,inclusion=False): else: toReplace = '%s://%s%s' % (rv.scheme, rv.hostname, rv.path) # leave off the final '?' - if expand_included_tweets and not inclusion: + if expand_included_tweets: if rv.hostname == 'twitter.com' and re.search(r'status/\d+',rv.path): quotedtweet = getTweet(toReplace, twitapi, inclusion=True) # inclusion parameter limits recursion. if not quotedtweet: -- 2.30.2