nodebb-plugin-composer-default 7.0.17 → 7.0.18

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": "7.0.17",
3
+ "version": "7.0.18",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -261,7 +261,7 @@ define('composer/drafts', ['api', 'alerts'], function (api, alerts) {
261
261
  tags: [],
262
262
  });
263
263
  } else if (type === 'tid') {
264
- socket.emit('topics.getTopic', id, function (err, topicObj) {
264
+ api.get('/topics/' + id, {}, function (err, topicObj) {
265
265
  if (err) {
266
266
  return alerts.error(err);
267
267
  }