Ticket #3175 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Allow plugins to alter comment flood behavior

Reported by: markjaquith Assigned to: markjaquith
Priority: low Milestone: 2.1
Component: General Version: 2.0.4
Severity: minor Keywords: has-patch commit
Cc:

Description

Currently, the 15 second rule for comment posting is rigidly coded. You can decide what happens before the die(), but it's always 15 seconds, and you can't stop the die().

The patch I'm uploading converts the 15 second rule to a filter, and creates a new filter. Plugins can hook in, examine the time difference, and make their own block decision.

Default behavior isn't changed, it just allows people to circumvent it.

Attachments

flood.diff (1.8 kB) - added by markjaquith on 09/28/06 08:00:41.
Patch for /trunk/
vroom_vroom.diff (1.8 kB) - added by markjaquith on 09/29/06 03:53:48.
Pushing the "spammers as a motorcycle gang" metaphor a little too far

Change History

09/28/06 08:00:41 changed by markjaquith

  • attachment flood.diff added.

Patch for /trunk/

09/28/06 08:01:35 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.
  • type changed from defect to enhancement.

Patch is up.

09/28/06 08:08:21 changed by westi

  • keywords changed from has-patch to has-patch commit.

This looks like a very good idea to me.

09/28/06 13:35:59 changed by Viper007Bond

1

09/28/06 18:32:53 changed by ryan

How about wp_throttle_comment_flood() and 'throttle_comment'? We need to work the word throttle into the source. :-)

09/29/06 03:53:48 changed by markjaquith

  • attachment vroom_vroom.diff added.

Pushing the "spammers as a motorcycle gang" metaphor a little too far

09/29/06 03:55:10 changed by markjaquith

What's wrong, lady of the house won't let you get a REAL motorcycle?

10/02/06 18:19:46 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [4265]) Pluggable comment throttling from Mark Jaquith. fixes #3175