[3.x] Represent permanent suspensions explicitly
Maintainers usually reply within 1 day
@Saksham-chourasia is already working on this.
Since Nov 9, 2026.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, laravel, php
- Domain
- api, backend, database, documentation, frontend
Research direction
Start by reading the suspension storage and user API code, then trace Suspend's permissions, search, UI, notifications and Audit integration; the issue also names GDPR anonymisation and extension compatibility as affected areas. Define the explicit state, transitions, migration and compatibility rules before implementation, including how historical notification data is handled. Done means those paths and the extension migration guide reflect the agreed design and affected integrations are coordinated.
Written by the indexing model from the issue text.
Description
Problem
Permanent suspensions currently use a sentinel value in users.suspended_until: the forum sends 2038-01-01. This represents an indefinite suspension using a date that will eventually expire, and requires consumers to infer intent from that date.
Follow-up to #4665 ([1.x & 2.x] Permanent Ban suspended_until is set to 2038-01-01 00:00:00). Keep the compatible recognition fix in 2.x; use 3.0 to design an explicit representation of permanent suspension.
Proposed scope
- Define explicit permanent-suspension state in storage and the user API, with clear temporary, permanent and unsuspended transitions. The precise schema remains a design decision.
- Provide shared backend status/query helpers and frontend status helpers so extensions do not need to duplicate date comparisons.
- Define compatibility and migration rules for existing suspension dates, API clients, direct model writes and historical notifications. Do not infer that every sufficiently distant date means permanent suspension: integrations also use ordinary long-duration dates.
- Update Suspend's permissions, search, UI, notifications and Audit integration, plus GDPR anonymisation and documentation.
- Publish an extension migration guide and coordinate affected integrations before release.
Historical notification data
The current UserSuspendedBlueprint::getData() returns Carbon::now(), while the frontend interprets the notification content as the suspension expiry. This mismatch was confirmed by source inspection during the 2.x recognition fix; its user-facing effect has not yet been reproduced on a forum.
The 3.0 migration must not assume historical notification content reliably identifies the expiry or whether a suspension was permanent. A user's current suspension state also cannot reconstruct their full suspension history. Fixing the existing notification payload mismatch is separate from changing permanent-suspension storage.
Ecosystem compatibility
This cannot safely be implemented in 2.x by setting suspended_until to null for permanently suspended users. Existing 2.x consumers read that column directly, including SQL queries:
- FoF Gamification: leaderboard eligibility.
- FoF User Bio: suspension-specific restrictions.
- FoF Byōbu: recipient filtering.
- FoF Top Posters Widget: exclusions, with a separate listener watching changes to the date for cache invalidation.
- Traditional Rank Icons: suspension badge rendering.
There are direct writers too: FoF Anti Spam saves suspension dates directly to the model, deliberately bypassing suspension notifications. Preserving only the JSON:API representation would not protect these database consumers or writers.
These examples come from source inspection, not an exhaustive inventory or runtime compatibility test. They demonstrate why the change needs a major-version migration rather than a flag-and-null replacement in 2.x.
- Dominant language
- PHP
- Stars
- 6.8k
- Forks
- 891
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 209
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from flarum/framework
-
type/accessibility type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Default language is ignored for anyone who chose a language, when the language selector is hiddenPossibly taken @1AbdullahButt claimed this 15 days ago. Opentype/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[2.x] False CLI/Web PHP mismatch when /usr/bin/php differs from the site's FPMPossibly taken @lazerg claimed this 15 days ago. Opentype/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[2.x] A filter on a resource without a searcher returns a 500Possibly taken @imorland claimed this today. Opentype/bug
flarum/framework#5578 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in flarum/framework
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
Sylius/Sylius#19359 · 1 comment ·
Maintainers usually reply within 1 day
-
Add php 8.6Open
Difficulty 1/5 Under an hour Newbie friendliness 66/100
mailersend/mailersend-php#199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Configuration new tool
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
novalo-dev/Prestashop-MCP-Server#366 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 10 days