nodebb-plugin-composer-default 10.0.5 → 10.0.6

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.
package/library.js CHANGED
@@ -105,22 +105,6 @@ plugin.getFormattingOptions = async function () {
105
105
 
106
106
  payload = await plugins.hooks.fire('filter:composer.formatting', payload);
107
107
 
108
- // TODO: Backwards compatibility -- remove in v1.16.0
109
- payload.options = payload.options.map((option) => {
110
- option.visibility = {
111
- ...defaultVisibility,
112
- ...option.visibility || {},
113
- };
114
- if (option.hasOwnProperty('mobile')) {
115
- winston.warn('[composer/formatting] `mobile` is no longer supported as a formatting option, use `visibility` instead (default values are passed in payload)');
116
- option.visibility.mobile = option.mobile;
117
- option.visibility.desktop = !option.mobile;
118
- }
119
-
120
- return option;
121
- });
122
- // end
123
-
124
108
  return payload ? payload.options : null;
125
109
  };
126
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.0.5",
3
+ "version": "10.0.6",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -85,6 +85,7 @@ define('composer/categoryList', [
85
85
  var uuid = postContainer.attr('data-uuid');
86
86
  taskbar.update('composer', uuid, {
87
87
  image: category.backgroundImage,
88
+ color: category.color,
88
89
  'background-color': category.bgColor,
89
90
  icon: category.icon && category.icon.slice(3),
90
91
  });