Releases: ernestdefoe/favorite-team
Releases · ernestdefoe/favorite-team
Release list
2.0.5
Fixed
- Enabling the extension no longer 500s the forum on Flarum 2.
TeamRepositoryread its bundledteams.jsonvia the LaravelFilefacade, which isn't reliably bound in Flarum's container — so it threw "A facade root has not been set" while the user API document was built, taking down the forum frontend the moment the extension was enabled (Flarum's error handler masked it, so logs only showed the facade error). It now reads the file with plainfile_exists()/file_get_contents(). Regression introduced in 2.0.4.
2.0.4
Audit hardening: PHP constraint bumped to ^8.3 (Flarum 2.x minimum) and the bundled team list is read via the Laravel File facade.
2.0.3
Changes
- The favorite-team logo badge now overlays the avatar's bottom-left corner on posts (like a group badge), instead of sitting below the avatar.
- Hovering the badge shows the team name as a tooltip.
Visual/UX only — no migrations.
2.0.2
Hardening release from a code audit.
Changes
- Server-side enforcement of the "require a favorite team" setting: members without a team are now blocked from starting discussions and replying (previously only nudged by the modal). Reading and choosing a team stay open.
- Visible feedback in the team picker: an error alert if a save fails (your selection is kept for retry) and a "Team saved!" confirmation on success.
- The profile-card logo badge now attaches via the supported
profileItemshook instead of mutating core's render tree — more robust across Flarum updates. TeamRepositoryis bound as a container singleton, so the bundled team list is parsed at most once per request.
No database or settings migrations; safe to update.
2.0.1
ci: add support-site release announcer (publish-to-flarum)
2.0.0
Add README Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>