akasblog.lua: content fix

This commit is contained in:
Akamaru 2015-12-01 20:51:42 +01:00
parent f2922674b8
commit 0b03b5b0e5

View File

@ -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, '<p>(.*)</p>')
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, "<p>", "")
local text = string.gsub(text, "</p>", "")
local receiver = get_receiver(msg)
return text
end