Use Flood API to detach flooding from actual messages

Created on 25 May 2020, over 5 years ago
Updated 19 August 2025, 26 days ago

Problem/Motivation

Currently, applying the limits is strictly tied to the actual number of messages a user has posted. There would be no way to add e.g. a way to clear the "counter" for a particular user to temporarily releave them from the limit; the messages are the counter.

Proposed resolution

Start using Drupal's Flood API to register PM events and check against that. This would allow a follow-up issue for administrators to clear the limits for a particular user. More technically inclined users could in the meantime strategically clear values from Drupal's flood table.

Remaining tasks

  • Reach concencus about need and solution
  • Patch
  • Review
  • Commit

User interface changes

None (yet).

API changes

None.

Data model changes

Limit-inducing values would make use of Drupal's Flood API and be detached from the "real" numbers.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024