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.
- package/library.js +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
|
}
|