From cb60a7799d93fee3ba5bddd4ac421eccad4ebeb9 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 6 Jan 2022 03:29:52 +0100 Subject: [PATCH] Cleaning. --- .../mod_vcard_peertubelivechat.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prosody-modules/mod_vcard_peertubelivechat/mod_vcard_peertubelivechat.lua b/prosody-modules/mod_vcard_peertubelivechat/mod_vcard_peertubelivechat.lua index cdaa22a0..30af2671 100644 --- a/prosody-modules/mod_vcard_peertubelivechat/mod_vcard_peertubelivechat.lua +++ b/prosody-modules/mod_vcard_peertubelivechat/mod_vcard_peertubelivechat.lua @@ -77,12 +77,12 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event) http.request(peertube_url .. ret.avatar.path, {}, function (body, code, response) if math.floor(code / 100) == 2 then module:log("debug", "Avatar found for %s", who); - vcard_temp:tag("PHOTO") + vcard_temp:tag("PHOTO"); if (response and response.headers and response.headers["content-type"]) then module:log("debug", "Avatar content-type: %s", response.headers["content-type"]); - vcard_temp:text_tag("TYPE", response.headers["content-type"]) - vcard_temp:text_tag("BINVAL", b64(body)) - vcard_temp:up() + vcard_temp:text_tag("TYPE", response.headers["content-type"]); + vcard_temp:text_tag("BINVAL", b64(body)); + vcard_temp:up(); else module:log("debug", "Avatar has no content-type."); end