1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 18:49: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

This commit is contained in:
DanyLE
2023-05-22 13:53:41 +02:00
parent a05507123c
commit b65bee0323
8 changed files with 23 additions and 30 deletions

View File

@ -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 =