mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-07-16 11:26:36 +08:00
Previously, we were deleting the `enable_topic_voting` custom field param and doing the staff logging in this plugin. This has a problem though, it was being done in the model's create/destroy hooks and was missing the acting user (so the logs would report the change as `system`). This PR keeps the custom field param and relies on core to do the staff action logging. This change also results in the custom field being set in the DB when it is enabled even though we don't use it in the serializer. |
||
|---|---|---|
| .. | ||
| category_setting.rb | ||
| topic_vote_count.rb | ||
| vote.rb | ||