mirror of https://github.com/zulip/zulip.git
9a6d83e731
In case of video embeds, the previous logic used `data-src-fullsize` or `src` as a key to look for the metadata of video in `lightbox.open()`, but while parsing, the key used while storing the metadata was the video ID. This doesn't make any sense because video's data could never be accessed from `asset_map` and we always needed to lookup the DOM for this. This commit fixes this by using $img.attr('src') as a key for `asset_map` for both, images and videos. Since `src` is the link of preview image in case of video embeds, it will always uniquely determine the video ID and we won't loose anything with the change in how videos handle things. Part of #14152. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.eslintrc.json | ||
.gitignore | ||
favicon.ico |