nodebb-plugin-composer-default 10.2.12 → 10.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.2.12",
3
+ "version": "10.2.13",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -107,7 +107,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
107
107
  draftData.toPid = postData.toPid;
108
108
  } else if (postData.action === 'posts.edit') {
109
109
  draftData.pid = postData.pid;
110
- draftData.title = title;
110
+ draftData.title = title || postData.title;
111
111
  }
112
112
  if (!app.user.uid) {
113
113
  draftData.handle = postContainer.find('input.handle').val();
@@ -284,7 +284,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
284
284
  cid: draft.cid,
285
285
  handle: app.user && app.user.uid ? undefined : utils.escapeHTML(draft.handle),
286
286
  title: utils.escapeHTML(draft.title),
287
- body: utils.escapeHTML(draft.text),
287
+ body: draft.text,
288
288
  tags: String(draft.tags || '').split(','),
289
289
  });
290
290
  } else if (draft.action === 'posts.reply') {
@@ -298,7 +298,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
298
298
  tid: draft.tid,
299
299
  toPid: draft.toPid,
300
300
  title: topicObj.title,
301
- body: utils.escapeHTML(draft.text),
301
+ body: draft.text,
302
302
  });
303
303
  });
304
304
  } else if (draft.action === 'posts.edit') {
@@ -306,7 +306,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
306
306
  save_id: draft.save_id,
307
307
  pid: draft.pid,
308
308
  title: draft.title ? utils.escapeHTML(draft.title) : undefined,
309
- body: utils.escapeHTML(draft.text),
309
+ body: draft.text,
310
310
  });
311
311
  }
312
312
  });