mirror of https://github.com/zulip/zulip.git
Revert "Host "preview failed" image locally."
This reverts commit 39f2908a32c0276b1d87ecedc876c71dd35a9b2f. We're not including the preview_fail.png image in the release. (imported from commit 2de1451de2f9b1727fc3a7e64c380b71c0f2caa8)
This commit is contained in:
parent
441fa8ed9d
commit
3770142635
|
@ -290,7 +290,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
|
|||
image_info["title"] = filename
|
||||
image_info["desc"] = ""
|
||||
# Dropbox's "unable to preview" image
|
||||
image_info["image"] = "/static/images/preview_fail.png"
|
||||
image_info["image"] = "https://dt8kf6553cww8.cloudfront.net/static/images/preview_fail-vflc3IDxf.png"
|
||||
|
||||
image_info["is_image"] = is_image
|
||||
return image_info
|
||||
|
|
|
@ -207,7 +207,7 @@ class BugdownTest(TestCase):
|
|||
# Don't fail on bad dropbox links
|
||||
msg = "https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM"
|
||||
converted = bugdown_convert(msg)
|
||||
self.assertEqual(converted, '<p><a href="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM" target="_blank" title="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM">https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM</a></p>\n<div class="message_inline_image"><a href="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM" target="_blank" title="ROmr9K1XYtmpneM"><img src="/static/images/preview_fail.png"></a></div>')
|
||||
self.assertEqual(converted, '<p><a href="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM" target="_blank" title="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM">https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM</a></p>\n<div class="message_inline_image"><a href="https://meta-dbdev.dev.corp.dropbox.com/photos/cl/ROmr9K1XYtmpneM" target="_blank" title="ROmr9K1XYtmpneM"><img src="https://dt8kf6553cww8.cloudfront.net/static/images/preview_fail-vflc3IDxf.png"></a></div>')
|
||||
|
||||
def test_twitter_id_extraction(self):
|
||||
self.assertEqual(bugdown.get_tweet_id('http://twitter.com/#!/VizzQuotes/status/409030735191097344'), '409030735191097344')
|
||||
|
|
Loading…
Reference in New Issue