Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

markdown: Increase the maximum number of image previews per message.

Alex Vandiver19f891968de5
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py
index 51c04067332..6ba4bcc78a4 100644
--- a/zerver/lib/markdown/__init__.py
+++ b/zerver/lib/markdown/__init__.py
@@ -623,7 +623,7 @@ IMAGE_EXTENSIONS = [".bmp", ".gif", ".jpe", ".jpeg", ".jpg", ".png", ".webp"]
class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
TWITTER_MAX_IMAGE_HEIGHT = 400
TWITTER_MAX_TO_PREVIEW = 3
- INLINE_PREVIEW_LIMIT_PER_MESSAGE = 5
+ INLINE_PREVIEW_LIMIT_PER_MESSAGE = 10
def add_a(
self,