chiark / gitweb /
correct typo (missing : )
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 21 Aug 2018 15:47:07 +0000 (16:47 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 21 Aug 2018 15:47:07 +0000 (16:47 +0100)
commands.py

index fbffa9f0ec6432bdf78e7b57dacaa04219d5c7e9..5a7cc94cdac1165910175f136cb1959afb9bd09b 100755 (executable)
@@ -578,7 +578,7 @@ def getTweet(urlstring,twitapi,inclusion=False,recurlvl=0):
 
         if expand_included_tweets:
             if rv.hostname == 'twitter.com' and re.search(r'status/\d+',rv.path):
-                if recurlvl > 2
+                if recurlvl > 2:
                   stringsout = [ "{{ Recursion level too high }}" ] + stringsout
                 else:
                   quotedtweet = getTweet(toReplace, twitapi, inclusion=True, recurlvl=recurlvl+1) # inclusion parameter limits recursion.