mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:09:00 +08:00
28d09227f5
ReviewableScore#types extend the PostActionTypes with their own, storing the result inside a class variable. To avoid overwriting an existing flag, we need to calculate the next flag ID using these types instead of the PostAction ones. Since we first call the score types to calculate the id, this list gets memoized, leaving us with an outdated list. To fix this, we now reload ReviewableScore#types after replacing flags. |
||
---|---|---|
.. | ||
filter_manager.rb | ||
filter.rb | ||
instance.rb | ||
metadata.rb |