nodebb-plugin-link-preview 1.3.1 → 1.3.2

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.
Files changed (2) hide show
  1. package/library.js +4 -0
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -173,6 +173,10 @@ async function process(content, opts) {
173
173
 
174
174
  // Generate the preview, but continue for now so as to not block response
175
175
  preview(url).then(async (preview) => {
176
+ if (!preview) {
177
+ return;
178
+ }
179
+
176
180
  const parsedUrl = new URL(url);
177
181
  preview.hostname = parsedUrl.hostname;
178
182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {