Software /
code /
prosody-modules
Diff
mod_bob/mod_bob.lua @ 3368:76fc915647ab
mod_bob: Don’t try to access XHTML-IM when it isn’t present.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 04 Nov 2018 18:38:06 +0100 |
parent | 3343:2e65160187a4 |
child | 5163:41fbed2de482 |
line wrap: on
line diff
--- a/mod_bob/mod_bob.lua Mon Oct 29 01:33:14 2018 +0100 +++ b/mod_bob/mod_bob.lua Sun Nov 04 18:38:06 2018 +0100 @@ -87,6 +87,9 @@ -- Find and query all of the cids not already cached. local tag = stanza:get_child("html", "http://jabber.org/protocol/xhtml-im"); + if not tag then + return; + end for body in tag:childtags("body", "http://www.w3.org/1999/xhtml") do find_images(body, jid, room_jid, log); end