flarum / flarum/issue-archive

Wait time between creating discussions/posts

Open
#302 8 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue type/feature
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Explanation

Currently, there is no way to set a limit on the time to wait for new discussions/posts to be made by users. I searched through the code and found that the floodgate class has a hard-coded time value of -10 seconds/minutes. I know this can be extended and used to create an extension that can handle this issue, but I honestly believe that this should be a setting that is included in core itself.

This line is where I found the hard-coded value.

This should be a permission-based setting that is set as an input rather than a drop-down with just a set amount (10 seconds/minutes) seems to be the natural flow here for some reason).

Technical details

  • Version of Flarum: v0.1.0-beta.7
  • Website URL where the bug is visible: N/A
  • The webserver you are running: N/A
  • PHP version: N/A
  • Hosted environment: N/A
  • Hosting provider: N/A

Flarum info

N/A

Log files

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/Core/Post/Floodgate.php at the linked hard-coded wait value, then trace how posting limits and permission-based settings are represented in core. Done means the fixed interval can be configured as a permission-based input for new discussions and posts, with the behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.