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
|
local url = data.url
|
||||||
if data.thumbnail then
|
if data.thumbnail then
|
||||||
image_url = data.thumbnail
|
image_url = data.thumbnail
|
||||||
elseif data.attachments then
|
|
||||||
image_url = data.attachments[1].url
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url
|
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
|
return text, image_url
|
||||||
else
|
else
|
||||||
return text
|
return text
|
||||||
|
@ -62,13 +62,11 @@ local function get_post(post)
|
|||||||
local url = data.url
|
local url = data.url
|
||||||
if data.thumbnail then
|
if data.thumbnail then
|
||||||
image_url = data.thumbnail
|
image_url = data.thumbnail
|
||||||
elseif data.attachments then
|
|
||||||
image_url = data.attachments[1].url
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url
|
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
|
return text, image_url
|
||||||
else
|
else
|
||||||
return text
|
return text
|
||||||
|
Reference in New Issue
Block a user