nodebb-plugin-composer-default 10.2.11 → 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
|
@@ -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:
|
|
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:
|
|
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:
|
|
309
|
+
body: draft.text,
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
});
|
package/static/lib/composer.js
CHANGED
|
@@ -455,7 +455,7 @@ define('composer', [
|
|
|
455
455
|
var data = {
|
|
456
456
|
topicTitle: title,
|
|
457
457
|
titleLength: title.length,
|
|
458
|
-
body: postData.body,
|
|
458
|
+
body: utils.escapeHTML(postData.body),
|
|
459
459
|
mobile: composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm',
|
|
460
460
|
resizable: true,
|
|
461
461
|
thumb: postData.thumb,
|