mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-27 02:59:47 +02:00
update: working version compatible with the latest version of silk and antd
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
@ -54,15 +54,14 @@ function CommentController:index(...)
|
||||
data.children = {}
|
||||
-- find all the replies to this thread
|
||||
local sub_comments, suborder =
|
||||
self.comment:find(
|
||||
{
|
||||
where = {
|
||||
pid = pid,
|
||||
rid = data.id
|
||||
},
|
||||
order = {"time$asc"}
|
||||
self.comment:find({
|
||||
where = {
|
||||
pid = pid,
|
||||
rid = data.id
|
||||
},
|
||||
order = {"time$asc"}
|
||||
|
||||
})
|
||||
})
|
||||
if sub_comments and #suborder ~= 0 then
|
||||
for i, subc in pairs(suborder) do
|
||||
sub_comments[subc].content =
|
||||
|
@ -7,8 +7,8 @@ require("silk.api")
|
||||
-- crypto lib
|
||||
enc = require("enc")
|
||||
WWW_ROOT = __ROOT__.."/talk"
|
||||
-- TODO change me
|
||||
DB_FILE = "/home/dany/databases/quicktalk.db"
|
||||
DB_LOC="/opt/www/databases"
|
||||
DB_FILE = DB_LOC.."/quicktalk.db"
|
||||
function fail(msg)
|
||||
std.json()
|
||||
std.t(JSON.encode({error = msg}))
|
||||
@ -25,9 +25,6 @@ else
|
||||
HTTP_ROOT = "https://talk.iohub.dev"
|
||||
end
|
||||
|
||||
-- TODO remove me
|
||||
HTTP_ROOT = HTTP_ROOT.."/next/talk"
|
||||
|
||||
-- class path: path.to.class
|
||||
CONTROLLER_ROOT = "talk.controllers"
|
||||
MODEL_ROOT = "talk.models"
|
||||
|
Reference in New Issue
Block a user