Wait time between creating discussions/posts
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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