aboutsummaryrefslogtreecommitdiff
path: root/cgi/weabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/weabot.py')
-rwxr-xr-xcgi/weabot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 056a933..736ed85 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -795,7 +795,6 @@ class weabot(object):
return (post_url, ttaken)
def delete_post(self, boarddir, postid, imageonly, password, mobile=False):
- # open database
OpenDb()
# set the board
@@ -821,7 +820,7 @@ class weabot(object):
# delete posts
if board['board_type'] == '1' and len(to_delete) == 1:
# we should be deleting only one (textboard)
- # check if it's the last post and delete it completely if it is
+ # check if it's the last post and delete permanently if so
deltype = '0'
post = FetchOne("SELECT `id`, `timestamp`, `parentid` FROM `posts` WHERE `boardid` = %s AND `id` = %s LIMIT 1" % (board["id"], str(to_delete[0])))
if post['parentid'] != '0':