From 048f45263025004f166411437533464093b6a79e Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Thu, 4 Aug 2016 13:18:05 +0200 Subject: [PATCH] Twitter: Fix, entferne unescape() und sende keine Bilder, wenn Video eingebunden ist --- otouto/plugins/twitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otouto/plugins/twitter.lua b/otouto/plugins/twitter.lua index 8c0d2cb..529b20c 100644 --- a/otouto/plugins/twitter.lua +++ b/otouto/plugins/twitter.lua @@ -130,8 +130,8 @@ function twitter:action(msg, config, matches) end -- send the parts - local text = unescape(text) utilities.send_reply(self, msg, header .. "\n" .. text.."\n"..footer, 'HTML') + if videos[1] then images = {} end for k, v in pairs(images) do local file = download_to_file(v) utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)