bugdown: Fix handling of twitter-format links that aren't actually tweets.

(imported from commit 60512147d8d303ff07cf1e86306fd14b1490e708)
This commit is contained in:
Tim Abbott
2013-05-29 15:38:16 -04:00
parent 1cf2d993a6
commit 2b1799b71c
3 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
import simplejson
def twitter(tweet_id):
if tweet_id not in ["112652479837110273", "287977969287315456", "287977969287315457"]:
return None
return simplejson.loads("""{
"coordinates": null,
"created_at": "Sat Sep 10 22:23:38 +0000 2011",