From 73954073ec4460465a1be8388a0a4c18b15e2440 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 3 Oct 2016 23:48:18 +0200 Subject: [PATCH] =?UTF-8?q?rss.lua:=20=C3=84ndere=20"Weiterlesen"=20zu=20"?= =?UTF-8?q?Auf=20bla.bla=20ansehen."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/plugins/rss.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miku/plugins/rss.lua b/miku/plugins/rss.lua index baed4ec..35dc356 100644 --- a/miku/plugins/rss.lua +++ b/miku/plugins/rss.lua @@ -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[#RSS] '..title..'\n'..feed_title..'\n'..utilities.trim(content)..' Weiterlesen\n' + text = text..'\n[#RSS] '..title..'\n'..feed_title..'\n'..utilities.trim(content)..'\nAuf '..link_name..' ansehen.\n' end if text ~= '' then local newlast = newentr[1].id