data.attachments wieder entfernt

This commit is contained in:
Akamaru 2016-02-02 16:13:34 +01:00
parent a29be4fd73
commit bbf3213d32
2 changed files with 2 additions and 6 deletions

View File

@ -62,13 +62,11 @@ local function get_post(post)
local url = data.url
if data.thumbnail then
image_url = data.thumbnail
elseif data.attachments then
image_url = data.attachments[1].url
end
local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url
if data.thumbnail or data.attachments then
if data.thumbnail then
return text, image_url
else
return text

View File

@ -62,13 +62,11 @@ local function get_post(post)
local url = data.url
if data.thumbnail then
image_url = data.thumbnail
elseif data.attachments then
image_url = data.attachments[1].url
end
local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url
if data.thumbnail or data.attachments then
if data.thumbnail then
return text, image_url
else
return text