mirror of
https://ghfast.top/https://github.com/discourse/discourse-akismet.git
synced 2026-07-15 11:36:24 +08:00
This commit updates the discourse-akismet plugin to ensure compatibility with the Glimmer Post Stream by: - Replacing the deprecated `includePostAttributes` method with `addTrackedPostProperties` in the plugin initializer. - Updating the `.discourse-compatibility` file to support Discourse versions before `3.5.0.beta8-dev`. These changes align the plugin with the latest Discourse plugin API, ensuring continued compatibility with recent core updates.
11 lines
221 B
JavaScript
11 lines
221 B
JavaScript
import { withPluginApi } from "discourse/lib/plugin-api";
|
|
|
|
export default {
|
|
name: "add-akismet-state",
|
|
|
|
initialize() {
|
|
withPluginApi((api) => {
|
|
api.addTrackedPostProperties("akismet_state");
|
|
});
|
|
},
|
|
};
|