discourse-akismet/assets/javascripts/discourse/initializers/add-akismet-state.js
Sérgio Saquetim dc192abfcd
DEV: Added compatibility with the Glimmer Post Stream (#175)
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.
2025-07-08 17:15:45 -03:00

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");
});
},
};