mirror of https://github.com/zulip/zulip.git
ad8943a64a
Some `<img>` tags do not have an SRC, if they are rewritten using JS to have one later. Attempting to access `first_image['src']` on these will raise an exception, as they have no such attribute. Only look for images which have a defined `src` attribute on them. We could instead check if `first_image.has_attr('src')`, but this seems only likely to produce fewer valid images. |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
generic.py | ||
open_graph.py |