Skip to content

Releases: ernestdefoe/favorite-team

2.0.5

Choose a tag to compare

@ernestdefoe ernestdefoe released this 19 Jul 13:11

Fixed

  • Enabling the extension no longer 500s the forum on Flarum 2. TeamRepository read its bundled teams.json via the Laravel File facade, 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 plain file_exists()/file_get_contents(). Regression introduced in 2.0.4.

2.0.4

Choose a tag to compare

@ernestdefoe ernestdefoe released this 21 Jun 20:32

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

Choose a tag to compare

@ernestdefoe ernestdefoe released this 30 May 23:33

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

Choose a tag to compare

@ernestdefoe ernestdefoe released this 30 May 22:30

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 profileItems hook instead of mutating core's render tree — more robust across Flarum updates.
  • TeamRepository is 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

Choose a tag to compare

@ernestdefoe ernestdefoe released this 30 May 21:47
ci: add support-site release announcer (publish-to-flarum)

2.0.0

Choose a tag to compare

@ernestdefoe ernestdefoe released this 30 May 01:01
Add README

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>