nodebb-plugin-composer-default 9.2.1 → 9.2.2

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 +2 -2
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -254,8 +254,8 @@ async function generateBody(req, postData) {
254
254
  const translated = await translator.translate(`[[modules:composer.user_said, ${username}]]`);
255
255
  return `${translated}\n` +
256
256
  `> ${postData ? `${postData.content.replace(/\n/g, '\n> ')}\n\n` : ''}`;
257
- } else if (req.query.body) {
258
- return validator.escape(String(req.query.body));
257
+ } else if (req.query.body || req.query.content) {
258
+ return validator.escape(String(req.query.body || req.query.content));
259
259
  }
260
260
  return postData ? postData.content : '';
261
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {