main ← pangbo13:fix-badge-toggle-favorite
opened 10:17AM - 18 Apr 25 UTC
This PR addresses the issue discussed in https://meta.discourse.org/t/failed-err…or-when-trying-to-un-star-the-bug-reporter-badge/330523
1. Fixed an issue in `user_badges_controller.rb` where the `toggle_favorite` method could incorrectly treat badges already marked as favorite as not being favorite.
2. Automatically synchronize the `is_favorite` status for new badges when a user is granted a multiple-grant badge.