rss.lua: Seitentitel nun im Feed

This commit is contained in:
Akamaru 2016-09-17 13:53:08 +02:00
parent 244c933435
commit e5f08801ab

View File

@ -316,7 +316,11 @@ function rss:cron()
if err ~= nil then
return
end
-- local feed_title = parsed.feed.title
if not parsed.feed.title then
feed_title = parsed.feed.link
else
feed_title = parsed.feed.title
end
local newentr = get_new_entries(last, parsed.entries)
local subscribers = {}
local text = '' -- Send one message per feed with the latest entries
@ -346,7 +350,7 @@ function rss:cron()
else
content = ''
end
text = text..'\n<b>[</b>#RSS<b>] '..title..'</b>\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)..' <a href="'..link..'">Weiterlesen</a>\n'
end
if text ~= '' then
local newlast = newentr[1].id