nodebb-plugin-composer-default 10.0.6 → 10.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/library.js +7 -0
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -105,6 +105,13 @@ plugin.getFormattingOptions = async function () {
105
105
 
106
106
  payload = await plugins.hooks.fire('filter:composer.formatting', payload);
107
107
 
108
+ payload.options.forEach((option) => {
109
+ option.visibility = {
110
+ ...defaultVisibility,
111
+ ...option.visibility || {},
112
+ };
113
+ });
114
+
108
115
  return payload ? payload.options : null;
109
116
  };
110
117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.0.6",
3
+ "version": "10.0.7",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {