... am Endes Beitrages nur, wenn der Beitrag mehr als 250 Zeichen hat
This commit is contained in:
parent
f23fe5f409
commit
a057e25f05
@ -183,9 +183,17 @@ local function cron()
|
|||||||
local title = v2.title or 'Kein Titel'
|
local title = v2.title or 'Kein Titel'
|
||||||
local link = v2.link or v2.id or 'Kein Link'
|
local link = v2.link or v2.id or 'Kein Link'
|
||||||
if v2.content then
|
if v2.content then
|
||||||
content = string.sub(unescape_for_rss(v2.content:gsub("%b<>", "")), 1, 250) .. '...'
|
if string.len(v2.content) > 250 then
|
||||||
|
content = string.sub(unescape_for_rss(v2.content:gsub("%b<>", "")), 1, 250) .. '...'
|
||||||
|
else
|
||||||
|
content = unescape_for_rss(v2.content:gsub("%b<>", ""))
|
||||||
|
end
|
||||||
elseif v2.summary then
|
elseif v2.summary then
|
||||||
content = string.sub(unescape_for_rss(v2.summary:gsub("%b<>", "")), 1, 250) .. '...'
|
if string.len(v2.summary) > 250 then
|
||||||
|
content = string.sub(unescape_for_rss(v2.summary:gsub("%b<>", "")), 1, 250) .. '...'
|
||||||
|
else
|
||||||
|
content = unescape_for_rss(v2.summary:gsub("%b<>", ""))
|
||||||
|
end
|
||||||
else
|
else
|
||||||
content = ''
|
content = ''
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user