mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
bugdown: Fix handling of twitter-format links that aren't actually tweets.
(imported from commit 60512147d8d303ff07cf1e86306fd14b1490e708)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user