nodebb-plugin-link-preview 2.0.10 → 2.0.11

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
@@ -311,7 +311,7 @@ plugin.onParse = async (payload) => {
311
311
  };
312
312
 
313
313
  plugin.onPost = async ({ post }) => {
314
- if (post._activitypub) {
314
+ if (post.hasOwnProperty('_activitypub')) {
315
315
  return; // no attachment parsing for content from activitypub; attachments saved via notes.assert
316
316
  }
317
317
 
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-plugin-link-preview",
9
- "version": "2.0.10",
9
+ "version": "2.0.11",
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.10",
3
+ "version": "2.0.11",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {