Fix comments showing up on the wrong stories.
This commit is contained in:
Robin Malley 2020-08-24 17:46:11 +00:00
parent bcb48bae3d
commit 496066e3aa
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,7 @@ local function read_story(host,path,idp,show_comments,iam)
else
cachestr = string.format("%s%s",host,path)
end
print("cachestr was:",cachestr)
local readstoryf = function()
local id = decode_id(idp)
stmnt_read:bind_names{
@ -712,6 +713,7 @@ local function read_story(host,path,idp,show_comments,iam)
})
err = stmnt_comments:step()
end
stmnt_comments:reset()
text = zlib.decompress(text)
stmnt_read:reset()
return pages.read{