
Last Friday we released Flarum 2.0, and we're still a bit giddy about it. Thank you to everyone who watched the launch, upgraded straight away, and came here to tell us how it went. Reading your posts this week has been a real treat.
Plenty of you also told us when something wasn't right, and that's what this release is: our first round of fixes for 2.0. Some came from your reports, and some from the errors this forum logged once it was busy with launch week traffic. It's a small, safe update with no database changes, so it should take you a couple of minutes.
Please update soon
Four of the fixes are security fixes, so we'd ask you not to leave this one for too long:
- In a restricted tag, a group allowed to hide posts could also see that tag's hidden discussions.
- On a private forum that requires no tags, guests could see members' profiles.
- Realtime didn't close websocket connections that came from the wrong site or used the wrong key.
- The link in the GDPR erasure email confirmed the request as soon as it was opened, which email security scanners do on their own. It now opens a page with a button for the member to press.
What else is better
- Links in account emails, such as password resets, can be clicked now.
- Messages now works on phones. It was stuck on a loading spinner, sorry about that one!
- Sticky discussions stay at the top of tags that have their own default sort.
- Deleting a discussion now updates the count on its tags.
- The statistics widget shows proper totals for a custom date range.
- Links to uploaded files open the file rather than the forum's front page.
- The forum copes when a browser blocks storage, which some privacy settings do.
- Queue workers no longer run out of memory rebuilding the forum's assets after an update.
- Some pages load their data in fewer database queries.
There's a lot more in the full changelog if you like the details.
Came from Flarum 1.x with random usernames?
If your forum used the "Randomize usernames" option in Nicknames on 1.x, some members will have usernames made only of numbers, which Flarum 2 doesn't accept. You can now edit those members again, and there's a new command to give them proper usernames while keeping their nicknames:
php flarum nicknames:convert-legacy-usernames --dry-run
Have a look at what it would change, then run it again without --dry-run. There's more on the Nicknames docs page.
Thank you
A big thank you to @Karl , @BartVB , @ernestdefoe , jamalkamaladdin and mmustafasenoglu, who sent in fixes, and to everyone who reported a problem. It all helps.
Updating
From your forum's root folder:
composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies
php flarum migrate
php flarum cache:clear
Then restart PHP and any queue workers so they pick up the new code.
Enjoy Flarum 2, and keep telling us how you're getting on! 