Leck mich doch...
This commit is contained in:
parent
626202ddae
commit
5060c42fab
@ -338,25 +338,25 @@ function rss:cron()
|
||||
if string.len(v2.content) > 250 then
|
||||
content = cleanRSS(content)
|
||||
content = unescape(content)
|
||||
content = '\n'..string.sub(content, 1, 250)..'...'
|
||||
content = string.sub(content, 1, 250)..'...'
|
||||
else
|
||||
content = cleanRSS(content)
|
||||
content = '\n'..unescape(content)
|
||||
content = unescape(content)
|
||||
end
|
||||
elseif v2.summary then
|
||||
content = v2.summary:gsub("%b<>", "")
|
||||
if string.len(v2.summary) > 250 then
|
||||
content = cleanRSS(content)
|
||||
content = unescape(content)
|
||||
content = '\n'..string.sub(content, 1, 250)..'...'
|
||||
content = string.sub(content, 1, 250)..'...'
|
||||
else
|
||||
content = cleanRSS(content)
|
||||
content = '\n'..unescape(content)
|
||||
content = unescape(content)
|
||||
end
|
||||
else
|
||||
content = ''
|
||||
end
|
||||
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
||||
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>\n'..utilities.trim(content)..'\n<a href="'..link..'">Auf '..link_name..' ansehen.</a>\n'
|
||||
end
|
||||
if text ~= '' then
|
||||
local newlast = newentr[1].id
|
||||
|
Reference in New Issue
Block a user