mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:17:09 +08:00

This corrects 2 issues: First is a regression with d7c08e21 for some reason dependent :delete_all respects default scopes where-as dependent :destroy bypasses it. Secondly, we were keeping orphan user actions around on user destroy, this ensures we remove all the user actions not only ones that originated by the user. So for example: if I like a post of user A we create a user action saying I did that, but once user A is deleted we were not removing the action leading to an orphan action in the database.