diff --git a/public/karax.html b/public/karax.html index 3f7f41b..f1686d5 100644 --- a/public/karax.html +++ b/public/karax.html @@ -11,6 +11,8 @@ + + diff --git a/src/main.tmpl b/src/main.tmpl index 3d4f8c2..8cfd620 100644 --- a/src/main.tmpl +++ b/src/main.tmpl @@ -2,13 +2,6 @@ #template `!`(idx: untyped): untyped = # row[idx] #end template -#proc genRSSHeaders(c: TForumData): string = -# result = "" - - -#end proc # #proc genThreadsRSS(c: TForumData): string = # result = "" @@ -16,7 +9,7 @@ # strftime('%Y-%m-%dT%H:%M:%SZ', (A.modified)), # COUNT(B.id), C.name, B.content, B.id # FROM thread AS A, post AS B, person AS C -# WHERE A.id = b.thread AND B.author = C.id +# WHERE NOT A.isDeleted AND A.id = b.thread AND B.author = C.id # GROUP BY B.thread # ORDER BY modified DESC LIMIT ?""" # const threadId = 0 @@ -63,7 +56,7 @@ ${xmlEncode(rstToHtml(!postContent))} # strftime('%Y-%m-%dT%H:%M:%SZ', A.creation), # A.creation, COUNT(C.id) # FROM post AS A, person AS B, post AS C, thread AS T -# WHERE A.author = B.id AND A.thread = C.thread AND C.id <= A.id +# WHERE NOT T.isDeleted AND NOT A.isDeleted AND A.author = B.id AND A.thread = C.thread AND C.id <= A.id # AND T.id = A.thread # GROUP BY A.id # ORDER BY A.creation DESC LIMIT 10"""