1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-23 17:19:47 +02:00

adapt to new api mechanism

This commit is contained in:
lxsang
2018-10-05 19:03:29 +02:00
parent cceb8b2c49
commit a6c14bd9bf
8 changed files with 31 additions and 31 deletions

View File

@ -18,8 +18,8 @@ POST_LIMIT = 2
-- require needed library
require(BASE_FRW.."silk.api")
if REQUEST.query.r then
REQUEST.query.r = REQUEST.query.r:gsub("%:", "/")
if REQUEST.r then
REQUEST.r = REQUEST.r:gsub("%:", "/")
end
-- registry object store global variables

View File

@ -48,7 +48,7 @@
<?lua
echo("<ul>")
for k,v in pairs(similar_posts) do
echo("<li><a href='./r:id:"..v.st.sid.."'>"..v.post.title.."</a> (<b>Score</b>: "..string.format("%2.2f",v.st.score)..")</li>")
echo("<li><a href='./"..v.st.sid.."'>"..v.post.title.."</a> (<b>Score</b>: "..string.format("%2.2f",v.st.score)..")</li>")
end
echo("</ul>")
end?>