akasblog.lua: content fix
This commit is contained in:
parent
f2922674b8
commit
0b03b5b0e5
@ -57,18 +57,16 @@ local function get_post(post)
|
|||||||
|
|
||||||
local from = data.author.name
|
local from = data.author.name
|
||||||
local date = makeOurDate(data.date)
|
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 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
|
return text
|
||||||
end
|
end
|
||||||
|
|
||||||
local function run(msg, matches)
|
local function run(msg, matches)
|
||||||
local text = get_post(post)
|
local text = get_post(post)
|
||||||
local text = string.gsub(text, "<p>", "")
|
|
||||||
local text = string.gsub(text, "</p>", "")
|
|
||||||
local receiver = get_receiver(msg)
|
local receiver = get_receiver(msg)
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user