summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-09 11:32:06 +0200
committerYorhel <git@yorhel.nl>2009-08-09 11:32:06 +0200
commit6a7ce876111ba59c33c332c947fb3644636ef650 (patch)
treef6b13839309505881100a9f0a235814779bdc1b5 /lib
parented515875f2fc77a3c77deaf94fe5de619cb53e01 (diff)
Don't check for double post when editing a post
There's no need to disallow someone to edit their post within 30 seconds after posting...
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Discussions.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm
index d8aa2f63..811bd74a 100644
--- a/lib/VNDB/Handler/Discussions.pm
+++ b/lib/VNDB/Handler/Discussions.pm
@@ -167,7 +167,7 @@ sub edit {
);
# check for double-posting
- push @{$frm->{_err}}, 'doublepost' if $self->dbPostGet(
+ push @{$frm->{_err}}, 'doublepost' if !$num && $self->dbPostGet(
uid => $self->authInfo->{id}, tid => $tid, mindate => time - 30, results => 1, $tid ? () : (num => 1))->[0]{num};
# parse and validate the boards