mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-05-25 00:14:14 +08:00
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
import { withPluginApi } from "discourse/lib/plugin-api";
|
|
|
|
export default {
|
|
name: "discourse-topic-voting-transformers",
|
|
before: "freeze-valid-transformers",
|
|
|
|
initialize() {
|
|
withPluginApi("1.35.0", (api) => {
|
|
api.addBehaviorTransformerName("topic-vote-button-click");
|
|
});
|
|
},
|
|
};
|