aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar bai 2019-07-16 23:48:07 -0400
committerLibravatar bai 2019-07-16 23:48:07 -0400
commit4a8caf00628313540c9a0e9d101344a673915b0f (patch)
treecd7a1dc2b0bebd03d1ccd0b35c5a7db4d90f6de3 /cgi
parent80e96363622a839e8bf6fdde8b1f46f3c1314a57 (diff)
downloadweabot-4a8caf00628313540c9a0e9d101344a673915b0f.tar.gz
weabot-4a8caf00628313540c9a0e9d101344a673915b0f.tar.xz
weabot-4a8caf00628313540c9a0e9d101344a673915b0f.zip
Arreglado problema con los IDs de los hilos en los reportes
Diffstat (limited to 'cgi')
-rwxr-xr-xcgi/weabot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index a02777f..d504409 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -898,7 +898,7 @@ class weabot(object):
parent_post = get_parent_post(post["parentid"], board["id"])
link = "/%s/read/%s/%s" % (board["dir"], parent_post["timestamp"], postshow)
else:
- link = "/%s/res/%s.html#%s" % (board["dir"], post["parentid"], post["id"])
+ link = "/%s/res/%d.html#%d" % (board["dir"], int(post["parentid"]) or int(post["id"]), int(post["id"]))
# insert report
t = time.time()