mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
This change adds support for displaying inline open graph previews for links posted into Zulip. It is designed to interact correctly with message editing. This adds the new settings.INLINE_URL_EMBED_PREVIEW setting to control whether this feature is enabled. By default, this setting is currently disabled, so that we can burn it in for a bit before it impacts users more broadly. Eventually, we may want to make this manageable via a (set of?) per-realm settings. E.g. I can imagine a realm wanting to be able to enable/disable it for certain URLs.
5 lines
183 B
Python
5 lines
183 B
Python
from zerver.lib.url_preview.parsers.open_graph import OpenGraphParser
|
|
from zerver.lib.url_preview.parsers.generic import GenericParser
|
|
|
|
__all__ = ['OpenGraphParser', 'GenericParser']
|