rss.lua: Ändere "Weiterlesen" zu "Auf bla.bla ansehen."

This commit is contained in:
Akamaru 2016-10-03 23:48:18 +02:00
parent 5ceefba77b
commit 73954073ec

View File

@ -327,6 +327,7 @@ function rss:cron()
for k2, v2 in pairs(newentr) do
local title = unescape(v2.title) or 'Kein Titel'
local link = v2.link or v2.id or 'Kein Link'
local link_name = link:match('^%w+://([^/]+)')
if v2.content then
content = v2.content:gsub("%b<>", "")
if string.len(v2.content) > 250 then
@ -350,7 +351,7 @@ function rss:cron()
else
content = ''
end
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\n<i>'..feed_title..'</i>\n'..utilities.trim(content)..' <a href="'..link..'">Weiterlesen</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