RSS: Code entwurstelt
This commit is contained in:
parent
d76e7ac219
commit
206f62f269
@ -330,16 +330,20 @@ function rss:cron(self_plz)
|
||||
local title = v2.title or 'Kein Titel'
|
||||
local link = v2.link or v2.id or 'Kein Link'
|
||||
if v2.content then
|
||||
content = v2.content:gsub("%b<>", "")
|
||||
if string.len(v2.content) > 250 then
|
||||
content = string.sub(unescape_for_rss(v2.content:gsub("%b<>", "")), 1, 250) .. '...'
|
||||
content = unescape_for_rss(content)
|
||||
content = string.sub(content, 1, 250)..'...'
|
||||
else
|
||||
content = unescape_for_rss(v2.content:gsub("%b<>", ""))
|
||||
content = unescape_for_rss(content)
|
||||
end
|
||||
elseif v2.summary then
|
||||
content = v2.summary:gsub("%b<>", "")
|
||||
if string.len(v2.summary) > 250 then
|
||||
content = string.sub(unescape_for_rss(v2.summary:gsub("%b<>", "")), 1, 250) .. '...'
|
||||
content = unescape_for_rss(content)
|
||||
content = string.sub(content, 1, 250)..'...'
|
||||
else
|
||||
content = unescape_for_rss(v2.summary:gsub("%b<>", ""))
|
||||
content = unescape_for_rss(content)
|
||||
end
|
||||
else
|
||||
content = ''
|
||||
|
Reference in New Issue
Block a user