diff options
author | Yorhel <git@yorhel.nl> | 2009-08-09 11:32:06 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-09 11:32:06 +0200 |
commit | 6a7ce876111ba59c33c332c947fb3644636ef650 (patch) | |
tree | f6b13839309505881100a9f0a235814779bdc1b5 /lib | |
parent | ed515875f2fc77a3c77deaf94fe5de619cb53e01 (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.pm | 2 |
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 |