aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
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()