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:
@ -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
|
||||
|
@ -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?>
|
||||
|
Reference in New Issue
Block a user