data.attachments wieder entfernt
This commit is contained in:
parent
a29be4fd73
commit
bbf3213d32
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user