aboutsummaryrefslogtreecommitdiff
path: root/cgi/post.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/post.py')
-rw-r--r--cgi/post.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/post.py b/cgi/post.py
index f0ee814..2c14004 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -692,9 +692,9 @@ def deletePost(postid, password, deltype='0', imageonly=False, quick=False):
if password:
if password != post['password']:
raise UserError, "No tienes permiso para eliminar este mensaje."
- if post["parentid"] == '0' and int(post["length"]) >= Settings.DELETE_FORBID_LENGTH:
+ elif post["parentid"] == '0' and int(post["length"]) >= Settings.DELETE_FORBID_LENGTH:
raise UserError, "No puedes eliminar un hilo con tantas respuestas."
- if (int(time.time()) - int(post["timestamp"])) > 86400:
+ elif (int(time.time()) - int(post["timestamp"])) > 86400:
raise UserError, "No puedes eliminar un post tan viejo."
# just update the DB if deleting only the image, otherwise delete whole post