mirror of https://github.com/zulip/zulip.git
107da5402c
Modified by punchagan to: * Replace URLs with titles only if the inline url embed previews are turned on * Add a test for youtube titles replacing URLs The titles for the videos are fetched asynchronously after the message has been sent via the code that fetches metadata for open graph previews. So, the URLs are replaced with titles only if the inline embed url previews feature is enabled. Ideally, YouTube previews should be shown only if inline url previews are enabled, but this feature is in beta, while YouTube previews are pretty stable. Once this feature is out of beta, YouTube previews should be shown only if the url previews feature is turned on. YouTube preview image is calculated as soon as the message is sent, while the title needs to be fetched using a network request. This means that the URL is replaced only after the data has been fetched from the request, and happens a couple of seconds after the message has been rendered. Closes #7549 |
||
---|---|---|
.. | ||
data_import | ||
lib | ||
management | ||
migrations | ||
openapi | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |