Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
markdown: Link the twitter response code docs inline.
Alex Vandiver90cdda983669
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.pyindex ac9b1f74bdb..62718ce2791 100644--- a/zerver/lib/markdown/__init__.py+++ b/zerver/lib/markdown/__init__.py@@ -412,6 +412,7 @@ def fetch_tweet_data(tweet_id: str) -> Optional[Dict[str, Any]]:except twitter.TwitterError as e:t = e.args[0]if len(t) == 1 and ('code' in t[0]):+ # https://developer.twitter.com/en/docs/basics/response-codescode = t[0]['code']if code in [34, 144, 421, 422]:# All these "correspond with HTTP 404," and mean