Version 1.1.2
- Fix "alert on homepage" and "see rankings" settings not working correctly together
- Fix duplicated ranking entries
- Fix background colors in dark mode
- Let Flarum pick between GD and Imagick driver to resize images
- Update to Webpack 5
You need to run php flarum migrate
or disable and re-enable the extension for the duplicate fix to apply. Existing duplicate entries will be merged and scores summed.
I assume the reason duplicated entries could exist was a race condition if you catch 2 fish very quickly and the webserver or database temporarily experiences a slow down. I have now added a missing UNIQUE constraint to the database, which means that if the same situation is experienced again, the second request should now result in a 500 error instead of creating a duplicate entry. This is likely the same situation that can also happen with other Flarum unique values, like post numbers on high traffic forums. I expect this to be incredibly rare.