nodebb-plugin-link-preview 2.0.9 → 2.0.10

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 CHANGED
@@ -301,7 +301,7 @@ plugin.onParse = async (payload) => {
301
301
  if (typeof payload === 'string') { // raw
302
302
  const type = 'default';
303
303
  payload = await process(payload, { type });
304
- } else if (payload && payload.postData && payload.postData.content) { // post
304
+ } else if (payload && payload.type !== 'plaintext' && payload.postData && payload.postData.content) { // post
305
305
  const { content, pid, tid, attachments } = payload.postData;
306
306
  const { type } = payload;
307
307
  payload.postData.content = await process(content, { type, pid, tid, attachments });
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-plugin-link-preview",
9
- "version": "2.0.9",
9
+ "version": "2.0.10",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "cheerio": "^1.0.0-rc.12",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {