diff --git a/plugins/akasblog.lua b/plugins/akasblog.lua index 1f36f4f..669c3bf 100644 --- a/plugins/akasblog.lua +++ b/plugins/akasblog.lua @@ -57,18 +57,16 @@ local function get_post(post) local from = data.author.name local date = makeOurDate(data.date) - local teaser = string.gsub(data.excerpt, '\n', '') + local content = string.match(data.excerpt, '

(.*)

') local url = data.url - local text = title..' ('..from..' am '..date..')\n\n'..teaser..'...\n'..url + local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url return text end local function run(msg, matches) local text = get_post(post) - local text = string.gsub(text, "

", "") - local text = string.gsub(text, "

", "") local receiver = get_receiver(msg) return text end